code: def __init__(self, comm):
      assert not comm.Is_inter()
      self.comm = comm.Dup()
      # start counter process
      script = os.path.abspath(__file__)
      if script[-4:] in (".pyc", ".pyo"):
          script = script[:-1]
      self.child = self.comm.Spawn(
          sys.executable, [script, "--child"], 1
      )
  
imports: from mpi4py import MPI
  import sys, os
label_desc: Use image node_id 1 to create a new Counter object  with example: obj = Counter(comm)