code: def get_directory(self) -> Path:
      self.artifact.consumed()
      path = Path(self.artifact.uri.path)
      path.mkdir(parents=True, exist_ok=True)
      return path
  
file_path: FATE/python/fate/components/core/component_desc/artifacts/data/_directory.py
imports: from pathlib import Path
  from fate.components.core.essential import DataDirectoryArtifactType
  from .._base_type import URI, ArtifactDescribe, DataOutputMetadata, Metadata, _ArtifactType, _ArtifactTypeReader, _ArtifactTypeWriter
label_desc: Use image node_id 1 for calling the DataDirectoryWriter obj's underlying member method code with example usage: obj.get_directory() and returns: path