class_docstr: Input reader for dataset.
class_docstr_tok: ["Input","reader","for","dataset","."]
code: def __init__(
      self, params, file_pattern, is_training=False, use_fake_data=False
  ):
      self._params = params
      self._file_pattern = file_pattern
      self._is_training = is_training
      self._use_fake_data = use_fake_data
      # COCO has 100 limit, but users may set different values for custom dataset.
      self._max_instances_per_image = (
          params["max_instances_per_image"] or 100
      )
      self._debug = params["seed"] is not None
  
imports: from absl import logging
  import tensorflow
  import utils
  from pipeline import anchors
  from .None import preprocessor
  from .None import tf_example_decoder
label_desc: Use image node_id 1 to create a new InputReader object  with example: obj = InputReader(params, file_pattern, is_training, use_fake_data)