code: def test_data_is_copied():
      adults = bmb.load_data("adults")
  
      model_1 = bmb.Model("age ~ sex * race", adults)
      model_2 = bmb.Model(
          "age ~ sex * race", adults, categorical=["age", "sex"]
      )
  
      for model in [model_1, model_2]:
          assert id(adults) != id(model.data)
          assert all(model.data.dtypes[:3] == "category")
  
      assert all(adults.dtypes[:3] == "object")
  
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 26 for calling a global function with example usage: test_data_is_copied() without return types