code: def test_missing_cardinality(self, schema):
      schema = {"new": "categorical:"}
      with pytest.raises(
          ValueError, match="Missing cardinality for categorical"
      ):
          validate_schema(nodes={"new"}, schema=schema)
  
      schema = {"new": "categorical:01"}
      with pytest.raises(
          ValueError, match="Missing cardinality for categorical"
      ):
          validate_schema(nodes={"new"}, schema=schema)
  
      schema = {"new": "categorical:100"}
      validate_schema(nodes={"new"}, schema=schema)
  
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 2 for calling the TestValidateSchema obj's underlying member method code with example usage: obj.test_missing_cardinality(schema) without return types