code: def test_raise_warning_if_nans_exist():
      """Test that a warning is raised if any nans are in the data."""
      data = np.array([[1, 2, 3], [1, 2, np.nan]])
  
      with pytest.warns(DataWarning):
          warn_if_nans_exist(data)
  
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 1 for calling a global function with example usage: test_raise_warning_if_nans_exist() without return types