code: def _maybe_create_graph(self):
      if self.create_graph:
          return tf.Graph()
      return tf.get_default_graph()
  
file_path: tensorpack/tensorpack/predict/config.py
imports: import six
  from ..compat import tfv1
  from ..train.model_desc import ModelDescBase
  from ..tfutils.sessinit import JustCurrentSession, SessionInit
  from ..tfutils.sesscreate import NewSessionCreator
  from ..tfutils.tower import TowerFunc
  from ..utils import logger
label_desc: Use image node_id 2 for calling the PredictConfig obj's underlying member method code with example usage: obj._maybe_create_graph() and returns: tf, tf