code: def helloworld(comm, args=None, verbose=True):
      """Hello, World! using MPI."""
      # pylint: disable=import-outside-toplevel
      from argparse import ArgumentParser
  
      parser = ArgumentParser(prog=_prog("helloworld"))
      parser.add_argument(
          "-q",
          "--quiet",
          action="store_false",
          dest="verbose",
          default=verbose,
          help="quiet output",
      )
      options = parser.parse_args(args)
  
      from . import MPI
  
      size = comm.Get_size()
      rank = comm.Get_rank()
      name = MPI.Get_processor_name()
      message = (
          f"Hello, World! I am process "
          f"{rank:{len(str(size - 1))}d} "
          f"of {size} on {name}.\n"
      )
      comm.Barrier()
      if rank > 0:
          comm.Recv([None, "B"], rank - 1)
      if options.verbose:
          _sys.stdout.write(message)
          _sys.stdout.flush()
      if rank < size - 1:
          comm.Send([None, "B"], rank + 1)
      comm.Barrier()
      return message
  
file_path: mpi4py/src/mpi4py/bench.py
imports: import os
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: helloworld(comm, args, verbose) and returns: message