code: def test_clean_data_dirty_X_clean_y():
      """Test that nan-containing X, y rows are removed when X contains nans."""
      X = np.array(
          [
              [1, 2, 3],
              [4, 5, 6],
              [7, 8, np.nan],
              [np.nan, np.nan, np.nan],
          ]
      )
      y = np.array([33, 44, 55, 66])
  
      expected_X = np.array([[1, 2, 3], [4, 5, 6]])
      expected_y = np.array([33, 44])
      observed_X, observed_y = filter_missing(X, y)
  
      np.testing.assert_array_equal(expected_X, observed_X)
      np.testing.assert_array_equal(expected_y, observed_y)
  
file_path: yellowbrick/tests/test_utils/test_nan_warnings.py
imports: import numpy
  import pytest
  from yellowbrick.exceptions import DataWarning
  from yellowbrick.utils.nan_warnings import count_nan_elements, count_rows_with_nans, warn_if_nans_exist, filter_missing
label_desc: Use image node_id 7 for calling a global function with example usage: test_clean_data_dirty_X_clean_y() without return types