code: def test_plot_error_handling(self):
      # handling same for all plots, here fairness check plot
      with self.assertRaises(
          dx.fairness._basics.exceptions.FairnessObjectsDifferenceError
      ):
          mgf_wrong = self.exp.model_fairness(
              protected=self.german_protected,
              privileged="male_young",  # wrong privileged
              verbose=False,
          )
          self.mgf.plot([mgf_wrong])
  
      with self.assertRaises(TypeError):
          self.mgf.plot(objects=[self.mgf_reg])
  
      with self.assertRaises(TypeError):
          self.mgf_reg.plot(objects=[self.mgf])
  
      with self.assertRaises(
          dx.fairness._basics.exceptions.FairnessObjectsDifferenceError
      ):
          mgf_wrong = self.exp.model_fairness(
              protected=self.german_protected,
              privileged="male_old",
              epsilon=0.6,  # different epsilon
              verbose=False,
          )
          self.mgf.plot([mgf_wrong])
  
      with self.assertRaises(
          dx.fairness._basics.exceptions.ParameterCheckError
      ):
          mgf_wrong = self.exp.model_fairness(
              protected=self.german_protected,
              privileged="male_old",
              epsilon=0.8,  # here ok epsilon
              verbose=False,
          )
          self.mgf.plot([mgf_wrong], epsilon=1.2)  # here wrong epsilon
  
      with self.assertRaises(
          dx.fairness._basics.exceptions.FairnessObjectsDifferenceError
      ):
          exp_wrong = deepcopy(self.exp)
          exp_wrong.y = exp_wrong.y[:-1]
          exp_wrong.y_hat = exp_wrong.y_hat[:-1]
  
          mgf_wrong = exp_wrong.model_fairness(
              protected=self.german_protected[:-1],  # shorter protected
              privileged="male_old",
              verbose=False,
          )
          self.mgf.plot([mgf_wrong])
  
      with self.assertRaises(
          dx.fairness._basics.exceptions.ParameterCheckError
      ):
          self.mgf.plot(type="not_existing")
  
imports: import unittest
  from copy import deepcopy
  import numpy
  import pandas
  from copy import copy
  from plotly.graph_objs import Figure
  from sklearn.compose import ColumnTransformer
  from sklearn.pipeline import Pipeline
  from sklearn.preprocessing import OneHotEncoder
  from sklearn.tree import DecisionTreeClassifier
  from sklearn.tree import DecisionTreeRegressor
  import dalex
  from dalex.fairness import reweight, resample, roc_pivot
label_desc: Use image node_id 12 for calling the FairnessTest obj's underlying member method code with example usage: obj.test_plot_error_handling() without return types