code: def _check_pdp_interact_plot_type(plot_type):
      """
      Check the validity of the `plot_type` for `PDPInteract`.
  
      Parameters
      ----------
      plot_type : str
          The value of the plot type to check.
  
      Raises
      ------
      ValueError
          If `plot_type` is not 'grid' or 'contour'.
      """
      if plot_type not in ["grid", "contour"]:
          raise ValueError(
              "plot_type should be either 'grid' or 'contour'."
          )
  
imports: import numpy
  import pandas
  import psutil
label_desc: Use image node_id 21 for calling a global function with example usage: _check_pdp_interact_plot_type(plot_type) without return types