class_docstr: A context object holding state about the TPU computation being built.
code: def number_of_shards(self):
      return self._number_of_shards
  
file_path: tensorflow/tensorflow/python/tpu/tpu_function.py
imports: import contextlib
  import threading
label_desc: Use image node_id 2 for calling the TpuContext obj's underlying member method code with example usage: obj.number_of_shards() and returns: self