code: def get_directory(self):
      self.artifact.consumed()
      path = Path(self.artifact.uri.path)
      path.mkdir(parents=True, exist_ok=True)
  
      # update model overview
      from fate.components.core.spec.model import MLModelModelSpec
  
      model_overview = self.artifact.metadata.model_overview
      model_overview.party.models.append(
          MLModelModelSpec(
              name="",
              created_time=datetime.datetime.now().isoformat(),
              file_format=ModelDirectoryArtifactType.type_name,
              metadata={},
          )
      )
      return self.artifact.uri.path
  
file_path: FATE/python/fate/components/core/component_desc/artifacts/model/_directory.py
imports: import datetime
  import typing
  from pathlib import Path
  from fate.components.core.essential import ModelDirectoryArtifactType
  from .._base_type import URI, ArtifactDescribe, Metadata, ModelOutputMetadata, _ArtifactType, _ArtifactTypeReader, _ArtifactTypeWriter
label_desc: Use image node_id 1 for calling the ModelDirectoryWriter obj's underlying member method code with example usage: obj.get_directory() and returns: self