code: def init_worker(inpaths, g_args):
      
      global global_args
      global srcs
      global_args = g_args
      srcs = [rasterio.open(i) for i in inpaths]
docs: The multiprocessing worker initializer
  
      Parameters
      ----------
      inpaths : list of str
          A list of dataset paths.
      g_args : dict
          Global arguments.
  
      Returns
      -------
      None