code: def test_model_categorical_argument():
      rng = np.random.default_rng(121195)
      data = pd.DataFrame(
          {
              "y": rng.normal(size=100),
              "x": rng.integers(2, size=100),
              "z": rng.integers(2, size=100),
          }
      )
      model = bmb.Model("y ~ 0 + x", data, categorical="x")
      assert model.response_component.terms["x"].categorical
  
      model = bmb.Model("y ~ 0 + x*z", data, categorical=["x", "z"])
      assert model.response_component.terms["x"].categorical
      assert model.response_component.terms["z"].categorical
      assert model.response_component.terms["x:z"].categorical
  
imports: import logging
  from functools import reduce
  from operator import add
  from os.path import dirname, join
  import arviz
  import numpy
  import pandas
  import pymc
  import pytest
  from formulae import design_matrices
  import bambi
  from bambi.terms import CommonTerm, GroupSpecificTerm
label_desc: Use image node_id 9 for calling a global function with example usage: test_model_categorical_argument() without return types