code: def test_error_if_top_categories_not_integer():
      with pytest.raises(ValueError):
          OneHotEncoder(top_categories=0.5)
  
file_path: feature_engine/tests/test_encoding/test_onehot_encoder.py
imports: import pandas
  import pytest
  from sklearn.pipeline import Pipeline
  from feature_engine.encoding import OneHotEncoder
label_desc: Use image node_id 4 for calling a global function with example usage: test_error_if_top_categories_not_integer() without return types