class_docstr: Tests for non-member functions in the module xla_sharding.py.
code: def test_get_sharding_tile_shape_raises_error_on_nonparsable_input(
      self,
  ):
      bad_proto_data = b"\x0f"
      with self.assertRaises(DecodeError):
          xla_sharding.get_sharding_tile_shape(bad_proto_data)
  
imports: from absl.testing import absltest
  import numpy
  from google.protobuf.message import DecodeError
  from local_xla.xla import xla_data_pb2
  from tensorflow.python.compiler.xla.experimental import xla_sharding
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
label_desc: Use image node_id 7 for calling the XlaShardingTest obj's underlying member method code with example usage: obj.test_get_sharding_tile_shape_raises_error_on_nonparsable_input() without return types