code: def test_row_drop(spec, expected):
      df = pd.DataFrame(
          {
              "index": [0, 1, 2],
              "x": [np.nan, 2, 3],
              "y": [10, 20, 30],
          }
      ).set_index("index")
  
      selector = DataSelector({**spec, "kind": "row_drop"})
      out, _ = selector.transform(df, return_summary=True)
  
      assert set(out.index) == expected
  
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 5 for calling a global function with example usage: test_row_drop(spec, expected) without return types