code: def rank_op(name=None):
      """An op that returns the Horovod rank of the calling process.
  
      This operation determines the return value at the graph execution time,
      rather than at the graph construction time, and so allows for a graph to be
      constructed in a different environment than where it will be executed.
  
      Returns:
        An integer scalar with the Horovod rank of the calling process.
      """
      return MPI_LIB.horovod_rank(name=name)
  
imports: import re
  import tensorflow
  from tensorflow.python.framework import load_library
  from tensorflow.python.framework import ops
  from tensorflow.python.platform import resource_loader
  from horovod.common.util import check_installed_version, get_ext_suffix, get_average_backwards_compatibility_fun, gpu_available, num_rank_is_power_2
  from horovod.common.basics import HorovodBasics
  from horovod.common.process_sets import _setup
  from horovod.common.process_sets import ProcessSet, global_process_set, add_process_set, remove_process_set, _temp_process_set_object
  from horovod.tensorflow.util import _executing_eagerly
label_desc: Use image node_id 26 for calling a global function with example usage: rank_op(name) and returns: MPI_LIB