code: def setUp(self):
      self.n_train = 100
      self.n_test = 50
      self.contamination = 0.1
      self.roc_floor = 0.8
      # generate data and fit model without missing or infinite values:
      (
          self.X_train,
          self.X_test,
          self.y_train,
          self.y_test,
      ) = generate_data(
          n_train=self.n_train,
          n_test=self.n_test,
          n_features=1,
          contamination=self.contamination,
          random_state=42,
      )
      self.clf = MAD()
      self.clf.fit(self.X_train)
      # generate data and fit model with missing value:
      (
          self.X_train_nan,
          self.X_test_nan,
          self.y_train_nan,
          self.y_test_nan,
      ) = generate_data(
          n_train=self.n_train,
          n_test=self.n_test,
          n_features=1,
          contamination=self.contamination,
          random_state=42,
          n_nan=1,
      )
      self.clf_nan = MAD()
      self.clf_nan.fit(self.X_train_nan)
      # generate data and fit model with infinite value:
      (
          self.X_train_inf,
          self.X_test_inf,
          self.y_train_inf,
          self.y_test_inf,
      ) = generate_data(
          n_train=self.n_train,
          n_test=self.n_test,
          n_features=1,
          contamination=self.contamination,
          random_state=42,
          n_inf=1,
      )
      self.clf_inf = MAD()
      self.clf_inf.fit(self.X_train_inf)
  
imports: from __future__ import division
  from __future__ import print_function
  import os
  import sys
  import unittest
  from numpy.testing import assert_allclose
  from numpy.testing import assert_array_less
  from numpy.testing import assert_equal
  from numpy.testing import assert_raises
  from scipy.stats import rankdata
  from sklearn.base import clone
  from sklearn.metrics import roc_auc_score
  from pyod.models.mad import MAD
  from pyod.utils.data import generate_data
label_desc: Use image node_id 1 for calling the TestMAD obj's underlying member method code with example usage: obj.setUp() without return types