code: def __init__(self, artifacts: List[_ArtifactType[MM]]):
      self.artifacts = artifacts
  
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 _ArtifactsType object from inherited base classes: Generic with example: obj = _ArtifactsType(artifacts)