docstr: This is a regression test for issue #5337.
docstr_tok: ["This","is","a","regression","test","for","issue","#","5337","."]
code: def test_conversion_from_variables_subset(self):
      """This is a regression test for issue #5337."""
      with pm.Model() as model:
          x = pm.Normal("x")
          pm.Normal("y", x, observed=5)
          idata = pm.sample(
              tune=10,
              draws=20,
              chains=1,
              step=pm.Metropolis(),
              compute_convergence_checks=False,
          )
          pm.sample_posterior_predictive(idata, var_names=["x"])
          pm.sample_prior_predictive(var_names=["x"])
  
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 21 for calling the TestDataPyMC obj's underlying member method code with example usage: obj.test_conversion_from_variables_subset() without return types