class_docstr: Class representing a chart.
  
  Parameters
  ----------
  arena : dalex.Arena
      Instance of Arena.
  cache : bool
      If this object is allowed to use cache when requesting resources
  
  Attributes
  --------
  arena : Arena
      Instance of dalex.Arena
  name : str
      Display name of chart
  plot_type : str
      Identifier of chart type
  plot_component : str
      Identifier of Arena's component that should render this chart
  plot_category : str
      Name of category of chart
  params : dict
      Dictionary with required param types as keys and param labels as values.
      This attribute is set when calling fit.
  data : dict
      Results of computations are placed there
  progress : float
      If progress is supprted, then value should be between [0,1]. For other situations -1 value must be set.
      Progress of plot container is based of progress of used resources at the moment of calling fit method.
      This value will not be updated.
  use_cache : bool
      If this object is allowed to use cache when requesting resources
docstr: Function validates param values as param of given type
  
  Parameters
  -----------
  param_type : str
      One of ['model', 'variable', 'observation', 'dataset'].
  value : Object
      Function checks if this object have correct class.
  
  Returns
  --------
  None if value is correct. Else raises exception
docstr_tok: ["Function","validates","param","values","as","param","of","given","type","Parameters","--","--","--","--","--","-","param_type",":","str","One","of","[","'model","'",",","'variable","'",",","'observation","'",",","'dataset","'","]",".","value",":","Object","Function","checks","if","this","object","have","correct","class",".","Returns","--","--","--","--","None","if","value","is","correct",".","Else","raises","exception"]
code: def check_param(self, param_type, value):
      """Function validates param values as param of given type
  
      Parameters
      -----------
      param_type : str
          One of ['model', 'variable', 'observation', 'dataset'].
      value : Object
          Function checks if this object have correct class.
  
      Returns
      --------
      None if value is correct. Else raises exception
      """
      correct_class = {
          "model": ModelParam,
          "variable": VariableParam,
          "observation": ObservationParam,
          "dataset": DatasetParam,
      }.get(param_type)
      if not isinstance(value, correct_class):
          raise Exception("Invalid param " + str(param_type))
  
file_path: DALEX/python/dalex/dalex/arena/_plot_container.py
imports: from ._option_base import OptionBase
  from .params import ModelParam, DatasetParam, VariableParam, ObservationParam
label_desc: Use image node_id 5 for calling the PlotContainer obj's underlying member method code with example usage: obj.check_param(param_type, value) without return types