code: def build_test(self):
      """
      Try building the ggplot object
  
      Parameters
      ----------
      self : ggplot
          ggplot object
  
      This function is meant to monkey patch ggplot.build_test
      so that tests can build a plot and inspect the side effects
      on the plot object.
      """
      self = deepcopy(self)
      self._build()
      return self
  
imports: import inspect
  import locale
  import shutil
  import types
  import warnings
  from copy import deepcopy
  from pathlib import Path
  import matplotlib
  import matplotlib.pyplot
  from matplotlib.testing.compare import compare_images
  from plotnine import ggplot, theme
label_desc: Use image node_id 4 for calling a global function with example usage: build_test() and returns: self