code: def testMismatchedDtypes(self):
      tensor = constant_op.constant(
          [[0, 1], [2, 3]], dtype=dtypes_lib.float32
      )
      with self.assertRaisesRegex(
          (ValueError, errors.InvalidArgumentError),
          "Invalid output dtype",
      ):
          self.evaluate(
              gen_linalg_ops.eig(
                  input=tensor,
                  Tout=dtypes_lib.complex128,  # Expected dtype: complex64.
                  compute_v=True,
              )
          )
  
imports: import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_linalg_ops
  from tensorflow.python.ops import gradient_checker_v2
  from tensorflow.python.ops import linalg_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import sort_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 4 for calling the EigTest obj's underlying member method code with example usage: obj.testMismatchedDtypes() without return types