code: def test_error_if_df_contains_outside_range_values(df_vartypes):
      # test error when data contains value outside range [0, +1]
      df_out_range = df_vartypes.copy()
      df_out_range.loc[1, "Marks"] = 2
  
      transformer = ArcsinTransformer(variables=["Marks"])
      # test case 4: when variable contains value outside range, fit
      with pytest.raises(ValueError):
          transformer.fit(df_out_range)
  
      # test case 5: when variable contains value outside range, transform
      transformer.fit(df_vartypes)
      with pytest.raises(ValueError):
          transformer.transform(df_out_range)
  
      # when selecting variables automatically and some are outside range
      transformer = ArcsinTransformer()
      with pytest.raises(ValueError):
          transformer.fit(df_vartypes)
  
file_path: feature_engine/tests/test_transformation/test_arcsin_transformer.py
imports: import pandas
  import pytest
  from sklearn.exceptions import NotFittedError
  from feature_engine.transformation import ArcsinTransformer
label_desc: Use image node_id 4 for calling a global function with example usage: test_error_if_df_contains_outside_range_values(df_vartypes) without return types