code: def test_if_pandas_df_convert_to_numpy():
      data = [[0, 5, "red"], [1, 6, "blue"], [2, 7, "something"]]
      df = pd.DataFrame(data, columns=["lat", "lng", "color"])
      res = if_pandas_df_convert_to_numpy(df)
      assert isinstance(res, np.ndarray)
      expected = np.array(data)
      assert all(
          [
              [all([i == j]) for i, j in zip(row1, row2)]
              for row1, row2 in zip(res, expected)
          ]
      )
      # Also check if it ignores things that are not Pandas DataFrame:
      assert if_pandas_df_convert_to_numpy(data) is data
      assert if_pandas_df_convert_to_numpy(expected) is expected
  
file_path: folium/tests/test_utilities.py
imports: import numpy
  import pandas
  import pytest
  from folium import FeatureGroup, Map, Marker, Popup
  from folium.utilities import _is_url, camelize, deep_copy, escape_double_quotes, get_obj_in_upper_tree, if_pandas_df_convert_to_numpy, javascript_identifier_path_to_array_notation, parse_options, validate_location, validate_locations, validate_multi_locations
label_desc: Use image node_id 6 for calling a global function with example usage: test_if_pandas_df_convert_to_numpy() without return types