code: def _unwrap_mlmd_artifacts(self, tfx_artifacts):
      if isinstance(tfx_artifacts, list):
          return [t.mlmd_artifact for t in tfx_artifacts]
      else:
          return [tfx_artifacts.mlmd_artifact]
  
imports: import random
  from absl.testing import parameterized
  import tensorflow
  from tfx.dsl.input_resolution.ops import group_by_lineage_op
  from tfx.dsl.input_resolution.ops import test_utils
  from tfx.orchestration.portable.input_resolution import exceptions
  from tfx.types import artifact_utils
  from tfx.utils import test_case_utils
label_desc: Use image node_id 2 for calling the _LineageUtils obj's underlying member method code with example usage: obj._unwrap_mlmd_artifacts(tfx_artifacts) and returns: unknown, list