code: def _validate_input_dict(input_dict: typing_utils.ArtifactMultiMap):
      """Checks that the input_dict is properly formatted."""
      if ops_utils.MODEL_KEY not in input_dict.keys():
          raise exceptions.InvalidArgument(
              f"{ops_utils.MODEL_KEY} is a required key of the input_dict."
          )
  
      valid_keys = {
          ops_utils.MODEL_KEY,
          ops_utils.MODEL_BLESSSING_KEY,
          ops_utils.MODEL_INFRA_BLESSING_KEY,
      }
      ops_utils.validate_input_dict(input_dict, valid_keys)
  
imports: import collections
  import enum
  from typing import Dict
  from tfx import types
  from tfx.dsl.input_resolution import resolver_op
  from tfx.dsl.input_resolution.ops import ops_utils
  from tfx.orchestration.portable.input_resolution import exceptions
  from tfx.orchestration.portable.mlmd import event_lib
  from tfx.orchestration.portable.mlmd import filter_query_builder
  from tfx.types import artifact_utils
  from tfx.utils import typing_utils
  from ml_metadata.proto import metadata_store_pb2
  from ml_metadata.tools.mlmd_resolver import metadata_resolver
label_desc: Use image node_id 3 for calling a global function with example usage: _validate_input_dict(input_dict) without return types