code: def testAllTypesConvertibleToNumpyDtype(self):
      for datatype_enum in types_pb2.DataType.values():
          if not _is_numeric_dtype_enum(datatype_enum):
              continue
          dtype = dtypes.as_dtype(datatype_enum)
          numpy_dtype = dtype.as_numpy_dtype
          _ = np.empty((1, 1, 1, 1), dtype=numpy_dtype)
          if dtype.base_dtype != dtypes.bfloat16:
              # NOTE(touts): Intentionally no way to feed a DT_BFLOAT16.
              self.assertEqual(
                  dtypes.as_dtype(datatype_enum).base_dtype,
                  dtypes.as_dtype(numpy_dtype),
              )
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.framework import _dtypes
  from tensorflow.core.framework import types_pb2
  from tensorflow.core.function import trace_type
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 3 for calling the TypesTest obj's underlying member method code with example usage: obj.testAllTypesConvertibleToNumpyDtype() without return types