code: def test_variable_dimension_name_collision(self):
      with pytest.raises(
          ValueError, match="same name as its dimension"
      ):
          with pm.Model() as pmodel:
              var = pt.as_tensor([1, 2, 3])
              pmodel.register_rv(var, name="time", dims=("time",))
  
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 25 for calling the TestDataPyMC obj's underlying member method code with example usage: obj.test_variable_dimension_name_collision() without return types