docstr: Asserts that inferred attributes have the expected values.
docstr_tok: ["Asserts","that","inferred","attributes","have","the","expected","values","."]
code: def assertInferredEqual(self, api_info, inferred, expected):
      """Asserts that inferred attributes have the expected values."""
      inferred_type_attrs = api_info.InferredTypeAttrs()
      inferred_type_list_attrs = api_info.InferredTypeListAttrs()
      inferred_length_attrs = api_info.InferredLengthAttrs()
  
      self.assertLen(inferred.types, len(inferred_type_attrs))
      self.assertLen(inferred.type_lists, len(inferred_type_list_attrs))
      self.assertLen(inferred.lengths, len(inferred_length_attrs))
      actual = {}
      for i, val in enumerate(inferred.types):
          if val._type_enum == types_pb2.DT_INVALID:
              val = types_pb2.DT_INVALID
          actual[inferred_type_attrs[i]] = val
      for i, val in enumerate(inferred.type_lists):
          actual[inferred_type_list_attrs[i]] = val
      for i, val in enumerate(inferred.lengths):
          actual[inferred_length_attrs[i]] = val
      self.assertEqual(actual, expected)
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.core.framework import types_pb2
  from tensorflow.python.eager import context
  from tensorflow.python.framework import _pywrap_python_api_info
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import test_util
  from tensorflow.python.framework._pywrap_python_api_parameter_converter import Convert
  from tensorflow.python.framework._pywrap_python_tensor_converter import PythonTensorConverter
  from tensorflow.python.platform import googletest
  from tensorflow.python.util import nest
label_desc: Use image node_id 7 for calling the PythonAPIWrapperTest obj's underlying member method code with example usage: obj.assertInferredEqual(api_info, inferred, expected) without return types