code: def test_potential(self):
      with pm.Model():
          x = pm.Normal("x", 0.0, 1.0)
          pm.Potential(
              "z", pm.logp(pm.Normal.dist(x, 1.0), np.random.randn(10))
          )
          inference_data = pm.sample(
              100, chains=2, return_inferencedata=True
          )
  
      assert inference_data
  
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 16 for calling the TestDataPyMC obj's underlying member method code with example usage: obj.test_potential() without return types