code: def compute_batch_size(tensor_dict):
      """Compute batch size."""
      if using_multigpu():
          dummy_tensor = next(iter(tensor_dict.values())).values
          batch_size = 0
          for ii in range(len(dummy_tensor)):
              batch_size += tf.shape(dummy_tensor[ii])[0]
      else:
          dummy_tensor = next(iter(tensor_dict.values()))
          batch_size = tf.shape(dummy_tensor)[0]
  
      return batch_size
  
file_path: graphics/tensorflow_graphics/projects/points_to_3Dobjects/utils/tf_utils.py
imports: import numpy
  import tensorflow
label_desc: Use image node_id 7 for calling a global function with example usage: compute_batch_size(tensor_dict) and returns: batch_size