docstr: Using a categorical variable instead of the one-hot encoded feature.
docstr_tok: ["Using","a","categorical","variable","instead","of","the","one-hot","encoded","feature","."]
code: def test_get_feature_index_valueerror(self, mapper):
      """
      Using a categorical variable instead of the one-hot encoded feature.
      """
      with pytest.raises(ValueError, match="Input is not a feature"):
          mapper.get_feature_index("C")
  
imports: from collections import OrderedDict
  import pytest
  from causalnex.structure import StructureModel
  from causalnex.structure.categorical_variable_mapper import VariableFeatureMapper, validate_schema
label_desc: Use image node_id 4 for calling the TestVariableFeatureMapper obj's underlying member method code with example usage: obj.test_get_feature_index_valueerror(mapper) without return types