code: def __init__(
      self, ctx: "Context", artifact: "_ArtifactType[Metadata]"
  ) -> None:
      self.ctx = ctx
      self.artifact = artifact
  
imports: import inspect
  import typing
  from typing import Generic, List, Optional, Type, TypeVar, Union
  from fate.arch import URI
  from fate.components.core.essential import Role, Stage
  from fate.components.core.spec.artifact import DataOutputMetadata, Metadata, MetricOutputMetadata, ModelOutputMetadata
  from fate.components.core.spec.component import ArtifactSpec
label_desc: Use image node_id 1 to create a new _ArtifactTypeReader object  with example: obj = _ArtifactTypeReader(ctx, artifact)