code: def test_pass_colormap_instance(df, plot_method):
      # https://github.com/pandas-dev/pandas/issues/49374
      cmap = mpl.colors.ListedColormap([[1, 1, 1], [0, 0, 0]])
      df["c"] = df.A + df.B
      kwargs = {"x": "A", "y": "B", "c": "c", "colormap": cmap}
      if plot_method == "hexbin":
          kwargs["C"] = kwargs.pop("c")
      getattr(df.plot, plot_method)(**kwargs)
  
imports: import gc
  import numpy
  import pytest
  from pandas import DataFrame, IndexSlice, Series
  import matplotlib
  from pandas.io.formats.style import Styler
label_desc: Use image node_id 21 for calling a global function with example usage: test_pass_colormap_instance(df, plot_method) without return types