code: def testMapOverScalarErrors(self):
      with self.assertRaisesRegex(
          ValueError, "must be .* Tensor.* not scalar"
      ):
          map_fn.map_fn(lambda x: x, [1, 2])
      with self.assertRaisesRegex(
          ValueError, "must be .* Tensor.* not scalar"
      ):
          map_fn.map_fn(lambda x: x, 1)
  
imports: import numpy
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gradients_impl
  from tensorflow.python.ops import init_ops
  from tensorflow.python.ops import map_fn
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.ops import variables
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.ops.ragged import ragged_tensor
  import tensorflow.python.ops.tensor_array_grad
  from tensorflow.python.platform import test
label_desc: Use image node_id 6 for calling the MapFnTest obj's underlying member method code with example usage: obj.testMapOverScalarErrors() without return types