def IsExtraProvide(self, token):
    """Returns whether the given goog.provide token is unnecessary.

    Args:
      token: A goog.provide token.

    Returns:
      True if the given token corresponds to an unnecessary goog.provide
      statement, otherwise False.
    """
    namespace = tokenutil.GetStringAfterToken(token)

    if self.GetClosurizedNamespace(namespace) is None:
      return False

    if self._duplicate_provide_tokens in token:
      return True

    # TODO(user): There's probably a faster way to compute this.
    for created_namespace, created_identifier, _ in self._created_namespaces:
      if namespace == created_namespace or namespace == created_identifier:
        return False

    return True
dataset/ETHPy150Open google/closure-linter/closure_linter/closurizednamespacesinfo.py/ClosurizedNamespacesInfo.IsExtraProvide/swapped operands of `in`