code: def test_is_compatible_typed_dict_not_total(self):
      class NotTotal(TypedDict, total=False):
          x: int
          y: float
          z: str
  
      self.assertIsCompatible({"x": 1, "y": 0.4, "z": "foo"}, NotTotal)
      self.assertIsNotCompatible(
          {"x": "1", "y": 0.4, "z": "foo"}, NotTotal
      )
      self.assertIsCompatible({"x": 1, "z": "foo"}, NotTotal)
      self.assertIsCompatible({}, NotTotal)
      self.assertIsNotCompatible({"w": False}, NotTotal)
  
imports: import sys
  import typing
  from typing import Any, List, Literal, TypedDict
  import unittest
  import tensorflow
  import tfx.types
  from tfx.types import standard_artifacts
  from tfx.utils import typing_utils
  import typing_extensions
  import ml_metadata
label_desc: Use image node_id 9 for calling the TypingUtilsTest obj's underlying member method code with example usage: obj.test_is_compatible_typed_dict_not_total() without return types