code: def process_single(processor, infile, outfile, **kwargs):
      """
      Process a single file with the given Processor.
  
      Parameters
      ----------
      processor : :class:`Processor` instance
          Processor to be processed.
      infile : str or file handle
          Input file (handle).
      outfile : str or file handle
          Output file (handle).
  
      """
      # pylint: disable=unused-argument
      # adjust origin in online mode
      if kwargs.get("online"):
          kwargs["origin"] = "online"
          kwargs["reset"] = False
      # process the input file
      _process((processor, infile, outfile, kwargs))
  
imports: from __future__ import absolute_import, division, print_function
  import argparse
  import itertools
  import multiprocessing
  import os
  import sys
  from collections.abc import MutableSequence
  import numpy
  from .utils import integer_types
label_desc: Use image node_id 2 for calling a global function with example usage: process_single(processor, infile, outfile) without return types