class_docstr: A class to support adding sharding attributes to Ops.
  
  Use the factory constructors and then call apply_to_tensor:
    Sharding.replicate().apply_to_tensor(tensor)
code: def _create_tuple_proto(self, num_outputs):
      shardings = [
          xla_data_pb2.OpSharding(
              type=xla_data_pb2.OpSharding.REPLICATED
          )
      ] * num_outputs
      return xla_data_pb2.OpSharding(
          type=xla_data_pb2.OpSharding.TUPLE, tuple_shardings=shardings
      )
  
imports: import numpy
  from tensorflow.compiler.tf2xla.python import xla
  from local_xla.xla import xla_data_pb2
  from tensorflow.core.framework import attr_value_pb2
label_desc: Use image node_id 13 for calling the Sharding obj's underlying member method code with example usage: obj._create_tuple_proto(num_outputs) and returns: xla_data_pb2