code: def test_strict_get_raises_error_when_type_not_strictly_matched(self):
      with self.assertRaisesWithLiteralMatch(
          errors.InvalidTypeHintError,
          "type_hint uses Model but the resolved artifacts have type_name ="
          " Examples",
      ):
          self._environ.strict_get(
              "multiple_artifacts_input", list[_Model]
          )
      with self.assertRaisesWithLiteralMatch(
          errors.InvalidTypeHintError,
          "type_hint uses Model but the resolved artifacts have type_name ="
          " Examples",
      ):
          self._environ.strict_get("single_artifact_input", _Model)
  
imports: from typing import Any, Callable, List, Optional, Type, Union
  from absl.testing import parameterized
  import tensorflow
  from tfx.orchestration.experimental.core import test_utils
  from tfx.orchestration.portable import data_types
  from tfx.orchestration.portable import execution_environ
  from tfx.proto.orchestration import pipeline_pb2
  from tfx.types import artifact
  from tfx.types import standard_artifacts
  from tfx.utils.di import errors
label_desc: Use image node_id 7 for calling the ExecutionEnvironTest obj's underlying member method code with example usage: obj.test_strict_get_raises_error_when_type_not_strictly_matched() without return types