class_docstr: Input/Output Processor which processes the input data with the input
  processor and pipes everything into the given output processor.
  
  All Processors defined in the input chain are sequentially called with the
  'data' argument only. The output Processor is the only one ever called with
  two arguments ('data', 'output').
  
  Parameters
  ----------
  in_processor : :class:`Processor`, function, tuple or list
      Input processor. Can be a :class:`Processor` (or subclass thereof
      like :class:`SequentialProcessor` or :class:`ParallelProcessor`), a
      function accepting a single argument ('data'). If a tuple or list
      is given, it is wrapped as a :class:`SequentialProcessor`.
  out_processor : :class:`OutputProcessor`, function, tuple or list
      OutputProcessor or function accepting two arguments ('data', 'output').
      If a tuple or list is given, it is wrapped in an :class:`IOProcessor`
      itself with the last element regarded as the `out_processor` and all
      others as `in_processor`.
class_docstr_tok: ["Input\/Output","Processor","which","processes","the","input","data","with","the","input","processor","and","pipes","everything","into","the","given","output","processor",".","All","Processors","defined","in","the","input","chain","are","sequentially","called","with","the","'data","'","argument","only",".","The","output","Processor","is","the","only","one","ever","called","with","two","arguments","(","'data","'",",","'output","'",")",".","Parameters","--","--","--","--","--","in_processor",":",":","class",":","`","Processor","`",",","function",",","tuple","or","list","Input","processor",".","Can","be","a",":","class",":","`","Processor","`","(","or","subclass","thereof","like",":","class",":","`","SequentialProcessor","`","or",":","class",":","`","ParallelProcessor","`",")",",","a","function","accepting","a","single","argument","(","'data","'",")",".","If","a","tuple","or","list","is","given",",","it","is","wrapped","as","a",":","class",":","`","SequentialProcessor","`",".","out_processor",":",":","class",":","`","OutputProcessor","`",",","function",",","tuple","or","list","OutputProcessor","or","function","accepting","two","arguments","(","'data","'",",","'output","'",")",".","If","a","tuple","or","list","is","given",",","it","is","wrapped","in","an",":","class",":","`","IOProcessor","`","itself","with","the","last","element","regarded","as","the","`","out_processor","`","and","all","others","as","`","in_processor","`","."]
docstr: Get the Processor at the given position.
  
  Parameters
  ----------
  index : int
      Processor position. Index '0' refers to the `in_processor`,
      index '1' to the `out_processor`.
  
  Returns
  -------
  :class:`Processor`
      Processor at the given position.
code: def __getitem__(self, index):
      """
      Get the Processor at the given position.
  
      Parameters
      ----------
      index : int
          Processor position. Index '0' refers to the `in_processor`,
          index '1' to the `out_processor`.
  
      Returns
      -------
      :class:`Processor`
          Processor at the given position.
  
      """
      if index == 0:
          return self.in_processor
      elif index == 1:
          return self.out_processor
      else:
          raise IndexError(
              "Only `in_processor` at index 0 and "
              "`out_processor` at index 1 are defined."
          )
  
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 the IOProcessor obj's underlying member method code with example usage: obj.__getitem__(index) and returns: self, self