code: def test_extract_relevant_features(self):
      selector = FeatureSelector()
      np.random.seed(42)
      y = pd.Series(np.random.binomial(1, 0.5, 1000))
      X = pd.DataFrame(index=list(range(1000)))
  
      z = (
          y
          - np.random.binomial(1, 0.1, 1000)
          + np.random.binomial(1, 0.1, 1000)
      )
      z[z == -1] = 0
      z[z == 2] = 1
  
      X["rel1"] = z
      X["rel2"] = y * np.abs(
          np.random.normal(0, 1, 1000)
      ) + np.random.normal(0, 0.1, 1000)
      X["rel3"] = y + np.random.normal(0, 1, 1000)
      X["rel4"] = y**2 + np.random.normal(0, 1, 1000)
      X["rel5"] = np.sqrt(y) + np.random.binomial(2, 0.1, 1000)
  
      X["irr_constant"] = 1.113344
  
      X["irr1"] = np.random.normal(0, 1, 1000)
      X["irr2"] = np.random.poisson(1, 1000)
      X["irr3"] = np.random.binomial(1, 0.3, 1000)
      X["irr4"] = np.random.normal(0, 1, 1000)
      X["irr5"] = np.random.poisson(1, 1000)
      X["irr6"] = np.random.binomial(1, 0.3, 1000)
      X["irr7"] = np.random.normal(0, 1, 1000)
      X["irr8"] = np.random.poisson(1, 1000)
      X["irr9"] = np.random.binomial(1, 0.3, 1000)
  
      returned_selector = selector.fit(X, y)
      self.assertIs(returned_selector, selector)
      self.assertEqual(
          sorted(selector.relevant_features),
          ["rel1", "rel2", "rel3", "rel4", "rel5"],
      )
  
      new_X = X.copy()
  
      selected_X = selector.transform(new_X)
  
      self.assertEqual(
          sorted(selector.relevant_features),
          sorted(list(selected_X.columns)),
      )
      self.assertEqual(len(selector.features), len(X.columns))
  
file_path: tsfresh/tests/units/transformers/test_feature_selector.py
imports: from builtins import range
  from unittest import TestCase
  import numpy
  import pandas
  from tsfresh.transformers.feature_selector import FeatureSelector
label_desc: Use image node_id 3 for calling the FeatureSelectorTestCase obj's underlying member method code with example usage: obj.test_extract_relevant_features() without return types