code: def parse_artifact_dict(json_str: str) -> Dict[str, List[Artifact]]:
      """Parse a dict from key to list of Artifact from its json format."""
      tfx_artifacts = {}
      for k, l in json.loads(json_str).items():
          tfx_artifacts[k] = [Artifact.from_json_dict(v) for v in l]
      return tfx_artifacts
  
file_path: tfx/tfx/types/artifact_utils.py
imports: import itertools
  import json
  import os
  from typing import Dict, List, Optional, Type, Union
  from absl import logging
  from tfx.dsl.io import fileio
  from tfx.types import artifact
  from tfx.types import standard_artifact_utils
  from tfx.types import value_artifact
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: parse_artifact_dict(json_str) and returns: tfx_artifacts