code: def test_multi_step():
      df = pd.DataFrame(
          {
              "index": [0, 1, 2],
              "x": [np.nan, 2, 3],
              "y": [10, 20, 30],
          }
      )
  
      selector = DataSelector(
          {"kind": "column_keep", "names": ["x"]},
          {"kind": "row_drop", "if_nas": True},
          {"kind": "column_drop", "max_na_prop": 0},
      )
  
      out, _ = selector.transform(df, return_summary=True)
      assert set(out.columns) == {"x"}
      assert set(out.index) == {1, 2}
  
file_path: sklearn-evaluation/tests/test_DataSelector.py
imports: from pathlib import Path
  import pytest
  import numpy
  import pandas
  from sklearn_evaluation.training import DataSelector
  from sklearn_evaluation.training.selector import expand_arguments, _with_prefix
  from sklearn_evaluation.exceptions import DataSelectorError
label_desc: Use image node_id 7 for calling a global function with example usage: test_multi_step() without return types