code: def test_filter_out_variables_not_in_dataframe(
      df, variables, overlap, not_in_col
  ):
      """Test the filter of variables not in the columns of the dataframe."""
      assert (
          _filter_out_variables_not_in_dataframe(df, variables)
          == overlap
      )
  
      with pytest.raises(ValueError):
          assert _filter_out_variables_not_in_dataframe(df, not_in_col)
  
file_path: feature_engine/tests/test_variable_handling/test_variable_type_selection.py
imports: import pandas
  import pytest
  from feature_engine._variable_handling.variable_type_selection import _filter_out_variables_not_in_dataframe, _find_all_variables, _find_categorical_and_numerical_variables, _find_or_check_categorical_variables, _find_or_check_datetime_variables, _find_or_check_numerical_variables
label_desc: Use image node_id 8 for calling a global function with example usage: test_filter_out_variables_not_in_dataframe(df, variables, overlap, not_in_col) without return types