code: def testDimTooLarge(self):
      with self.cached_session():
          # Use placeholder to make sure we get runtime error instead of shape
          # inference error.
          dim = array_ops.placeholder_with_default(100, shape=[])
          with self.assertRaises(errors_impl.InvalidArgumentError):
              nn_ops.softmax([1.0, 2.0, 3.0, 4.0], axis=dim).eval()
  
imports: import unittest
  import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 23 for calling the SoftmaxTest obj's underlying member method code with example usage: obj.testDimTooLarge() without return types