code: def testWrongDimensions(self):
      # The input to self_adjoint_eig should be a tensor of
      # at least rank 2.
      scalar = constant_op.constant(1.0)
      with self.assertRaises(ValueError):
          linalg_ops.eig(scalar)
      vector = constant_op.constant([1.0, 2.0])
      with self.assertRaises(ValueError):
          linalg_ops.eig(vector)
  
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 1 for calling the EigTest obj's underlying member method code with example usage: obj.testWrongDimensions() without return types