code: def test_bbox_inches_tight_suptile_legend():
      plt.plot(np.arange(10), label="a straight line")
      plt.legend(bbox_to_anchor=(0.9, 1), loc="upper left")
      plt.title("Axis title")
      plt.suptitle("Figure title")
  
      # put an extra long y tick on to see that the bbox is accounted for
      def y_formatter(y, pos):
          if int(y) == 4:
              return "The number 4"
          else:
              return str(y)
  
      plt.gca().yaxis.set_major_formatter(FuncFormatter(y_formatter))
  
      plt.xlabel("X axis")
  
file_path: matplotlib/lib/matplotlib/tests/test_bbox_tight.py
imports: from io import BytesIO
  import numpy
  from matplotlib.testing.decorators import image_comparison
  import matplotlib.pyplot
  import matplotlib.path
  import matplotlib.patches
  from matplotlib.ticker import FuncFormatter
label_desc: Use image node_id 2 for calling a global function with example usage: test_bbox_inches_tight_suptile_legend() and returns: str, str