code: def write_metadata(self, metadata: dict, name=None, namespace=None):
      self.artifact.consumed()
      self.artifact.metadata.metadata.update(metadata)
      if name is not None:
          self.artifact.metadata.name = name
      if namespace is not None:
          self.artifact.metadata.namespace = namespace
  
file_path: FATE/python/fate/components/core/component_desc/artifacts/data/_unresolved.py
imports: from pathlib import Path
  from fate.components.core.essential import DataUnresolvedArtifactType
  from .._base_type import URI, ArtifactDescribe, DataOutputMetadata, Metadata, _ArtifactType, _ArtifactTypeReader, _ArtifactTypeWriter
label_desc: Use image node_id 1 for calling the DataUnresolvedWriter obj's underlying member method code with example usage: obj.write_metadata(metadata, name, namespace) without return types