code: def test_error_if_random_state_takes_not_permitted_value():
      with pytest.raises(ValueError):
          RandomSampleImputer(seed="general", random_state="arbitrary")
  
file_path: feature_engine/tests/test_imputation/test_random_sample_imputer.py
imports: import numpy
  import pandas
  import pytest
  from feature_engine.imputation import RandomSampleImputer
  from feature_engine.imputation.random_sample import _define_seed
label_desc: Use image node_id 8 for calling a global function with example usage: test_error_if_random_state_takes_not_permitted_value() without return types