code: def get_plt():
      """import matplotlib.pyplot
      raise import error if matplotlib is not installed
      """
      try:
          import matplotlib.pyplot as plt
  
          return plt
      except (ImportError, RuntimeError):  # pragma: no cover
          msg = "Could not import matplotlib\n"
          msg += "matplotlib required for plotting functions"
          raise ImportError(msg)
  
file_path: rasterio/rasterio/plot.py
imports: import builtins
  from collections import OrderedDict
  import logging
  import numpy
  import rasterio
  from rasterio.io import DatasetReader
  from rasterio.transform import guard_transform
label_desc: Use image node_id 1 for calling a global function with example usage: get_plt() and returns: plt