code: def test_error_if_random_state_is_none_when_seed_is_observation():
      with pytest.raises(ValueError):
          RandomSampleImputer(seed="observation", random_state=None)
  
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 9 for calling a global function with example usage: test_error_if_random_state_is_none_when_seed_is_observation() without return types