code: def testShape(self):
      for pad in (False, True):
          for _ in range(10):
              msg = [
                  np.random.bytes(np.random.randint(20))
                  for _ in range(np.random.randint(10))
              ]
              self._RunTest(msg, pad=pad)
  
          # Zero-element, non-trivial shapes.
          for _ in range(10):
              k = np.random.randint(10)
              msg = np.empty((0, k), dtype=bytes)
              encoded = string_ops.encode_base64(msg, pad=pad)
              decoded = string_ops.decode_base64(encoded)
  
              with self.cached_session() as sess:
                  encoded_value, decoded_value = self.evaluate(
                      [encoded, decoded]
                  )
  
              self.assertEqual(encoded_value.shape, msg.shape)
              self.assertEqual(decoded_value.shape, msg.shape)
  
file_path: tensorflow-upstream/tensorflow/python/kernel_tests/strings_ops/base64_ops_test.py
imports: import base64
  import numpy
  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 string_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 5 for calling the Base64OpsTest obj's underlying member method code with example usage: obj.testShape() without return types