class_docstr: Base class for the abstract InputSource. 
class_docstr_tok: ["Base","class","for","the","abstract","InputSource","."]
docstr: Initialize/reinitialize this InputSource.
  Must be called under a default session.
  
  For training, it will get called once by the trainer in `before_train` callbacks.
  For inference, the :class:`InferenceRunner` will call this method each time it is triggered.
docstr_tok: ["Initialize\/reinitialize","this","InputSource",".","Must","be","called","under","a","default","session",".","For","training",",","it","will","get","called","once","by","the","trainer","in","`","before_train","`","callbacks",".","For","inference",",","the",":","class",":","`","InferenceRunner","`","will","call","this","method","each","time","it","is","triggered","."]
code: def reset_state(self):
      """
      Initialize/reinitialize this InputSource.
      Must be called under a default session.
  
      For training, it will get called once by the trainer in `before_train` callbacks.
      For inference, the :class:`InferenceRunner` will call this method each time it is triggered.
      """
      self._reset_state()
  
imports: import copy
  from abc import ABCMeta, abstractmethod
  from contextlib import contextmanager
  import six
  import tensorflow
  from ..callbacks.base import CallbackFactory
  from ..tfutils.common import get_op_tensor_name
  from ..utils import logger
  from ..utils.argtools import call_only_once, memoized_method
  from ..compat import tfv1
label_desc: Use image node_id 8 for calling the InputSource obj's underlying member method code with example usage: obj.reset_state() without return types