code: def test_model_to_graphviz_for_model_with_data_container(self):
      with pm.Model() as model:
          x = pm.ConstantData("x", [1.0, 2.0, 3.0])
          y = pm.MutableData("y", [1.0, 2.0, 3.0])
          beta = pm.Normal("beta", 0, 10.0)
          obs_sigma = floatX(np.sqrt(1e-2))
          pm.Normal("obs", beta * x, obs_sigma, observed=y)
          pm.sample(
              1000,
              tune=1000,
              chains=1,
              compute_convergence_checks=False,
          )
  
      for formatting in {"latex", "latex_with_params"}:
          with pytest.raises(
              ValueError, match="Unsupported formatting"
          ):
              pm.model_to_graphviz(model, formatting=formatting)
  
      exp_without = [
          'x [label="x\n~\nConstantData" shape=box style="rounded, filled"]',
          'y [label="x\n~\nMutableData" shape=box style="rounded, filled"]',
          'beta [label="beta\n~\nNormal"]',
          'obs [label="obs\n~\nNormal" style=filled]',
      ]
      exp_with = [
          'x [label="x\n~\nConstantData" shape=box style="rounded, filled"]',
          'y [label="x\n~\nMutableData" shape=box style="rounded, filled"]',
          'beta [label="beta\n~\nNormal(mu=0.0, sigma=10.0)"]',
          f'obs [label="obs\n~\nNormal(mu=f(f(beta), x), sigma={obs_sigma})" style=filled]',
      ]
      for formatting, expected_substrings in [
          ("plain", exp_without),
          ("plain_with_params", exp_with),
      ]:
          g = pm.model_to_graphviz(model, formatting=formatting)
          # check formatting of RV nodes
          for expected in expected_substrings:
              assert expected in g.source
  
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 11 for calling the TestData obj's underlying member method code with example usage: obj.test_model_to_graphviz_for_model_with_data_container() without return types