code: def test_raise_error_if_inf_in_df(df):
      """Test an error is raised for inf when missing values is set to raise."""
      data = df.copy()
      data["var_3"].iloc[15] = np.inf
  
      transformer = DropHighPSIFeatures(missing_values="raise")
  
      with pytest.raises(ValueError):
          transformer.fit(data)
  
imports: from datetime import date
  import math
  import numpy
  import pandas
  import pytest
  from sklearn.datasets import make_classification
  from feature_engine.selection import DropHighPSIFeatures
label_desc: Use image node_id 12 for calling a global function with example usage: test_raise_error_if_inf_in_df(df) without return types