code: def _show_or_return(obj, show):
      if show:
          # We never cover this in tests, unfortunately. Even with the
          # cleanup tag, Travis doesn't play super nice with showing and
          # closing lots of plots over and over. But it's just one line...
          mpl.show()
          # returns None implicitly
      else:
          return obj
  
file_path: pmdarima/pmdarima/utils/visualization.py
imports: from .array import check_endog
  from ..compat.pandas import plotting
  from ..compat.matplotlib import get_compatible_pyplot
  from statsmodels.graphics import tsaplots
  import numpy
  import os
label_desc: Use image node_id 3 for calling a global function with example usage: _show_or_return(obj, show) and returns: obj