code: def test_no_trace(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, 1)
          obs = pm.Normal("obs", x * beta, 1, observed=y)
          idata = pm.sample(100, tune=100)
          prior = pm.sample_prior_predictive(return_inferencedata=False)
          posterior_predictive = pm.sample_posterior_predictive(
              idata, return_inferencedata=False
          )
  
      # Only prior
      inference_data = to_inference_data(prior=prior, model=model)
      test_dict = {"prior": ["beta"], "prior_predictive": ["obs"]}
      fails = check_multiple_attrs(test_dict, inference_data)
      assert not fails
      # Only posterior_predictive
      inference_data = to_inference_data(
          posterior_predictive=posterior_predictive, model=model
      )
      test_dict = {"posterior_predictive": ["obs"]}
      fails = check_multiple_attrs(test_dict, inference_data)
      assert not fails
      # Prior and posterior_predictive but no trace
      inference_data = to_inference_data(
          prior=prior,
          posterior_predictive=posterior_predictive,
          model=model,
      )
      test_dict = {
          "prior": ["beta"],
          "prior_predictive": ["obs"],
          "posterior_predictive": ["obs"],
      }
      fails = check_multiple_attrs(test_dict, inference_data)
      assert not fails
  
imports: import warnings
  from typing import Dict, Tuple
  import numpy
  import pytensor.tensor
  import pytest
  from arviz import InferenceData
  from arviz.tests.helpers import check_multiple_attrs
  from numpy import ma
  from pytensor.tensor.subtensor import AdvancedIncSubtensor, AdvancedIncSubtensor1
  import pymc
  from pymc.backends.arviz import InferenceDataConverter, predictions_to_inference_data, to_inference_data
  from pymc.exceptions import ImputationWarning
label_desc: Use image node_id 19 for calling the TestDataPyMC obj's underlying member method code with example usage: obj.test_no_trace() without return types