code: def main(banner, dataset, alt_interpreter=None):
      """Main entry point for use with python interpreter."""
      local = dict(funcs, src=dataset, np=np, rio=rasterio, plt=plt)
      if not alt_interpreter:
          code.interact(banner, local=local)
      elif alt_interpreter == "ipython":  # pragma: no cover
          import IPython
  
          IPython.InteractiveShell.banner1 = banner
          IPython.start_ipython(argv=[], user_ns=local)
      else:
          raise ValueError(
              "Unsupported interpreter '%s'" % alt_interpreter
          )
  
      return 0
  
file_path: rasterio/rasterio/rio/insp.py
imports: from __future__ import absolute_import
  import code
  import logging
  import sys
  import collections
  import warnings
  import numpy
  import click
  from .None import options
  import rasterio
label_desc: Use image node_id 2 for calling a global function with example usage: main(banner, dataset, alt_interpreter) and returns: int