def RegisterArtifact(self, artifact_rdfvalue, source="datastore",
                       overwrite_if_exists=False):
    """Registers a new artifact."""
    if not overwrite_if_exists and self._artifacts in artifact_rdfvalue.name:
      raise ArtifactDefinitionError("Artifact named %s already exists and "
                                    "overwrite_if_exists is set to False." %
                                    artifact_rdfvalue.name)

    # Preserve where the artifact was loaded from to help debugging.
    artifact_rdfvalue.loaded_from = source
    # Clear any stale errors.
    artifact_rdfvalue.error_message = None
    self._artifacts[artifact_rdfvalue.name] = artifact_rdfvalue
dataset/ETHPy150Open google/grr/grr/lib/artifact_registry.py/ArtifactRegistry.RegisterArtifact/swapped operands of `in`