code: def test_creation_of_data_outside_model_context(self):
      with pytest.raises((IndexError, TypeError)) as error:
          pm.ConstantData("data", [1.1, 2.2, 3.3])
      error.match("No model on context stack")
  
imports: import io
  import itertools
  import re
  import cloudpickle
  import numpy
  import pytensor
  import pytensor.tensor
  import pytest
  from pytensor import shared
  from pytensor.tensor.variable import TensorVariable
  import pymc
  from pymc.data import is_minibatch
  from pymc.pytensorf import GeneratorOp, floatX
label_desc: Use image node_id 9 for calling the TestData obj's underlying member method code with example usage: obj.test_creation_of_data_outside_model_context() without return types