code: def test_moment_from_dims(self, rv_cls):
      with pm.Model(
          coords={
              "year": [2019, 2020, 2021, 2022],
              "city": ["Bonn", "Paris", "Lisbon"],
          }
      ):
          rv = rv_cls("rv", dims=("year", "city"))
          assert not hasattr(rv.tag, "test_value")
          assert tuple(moment(rv).shape.eval()) == (4, 3)
      pass
  
imports: import cloudpickle
  import numpy
  import pytensor
  import pytensor.tensor
  import pytest
  from pytensor.tensor.random.op import RandomVariable
  import pymc
  from pymc.distributions.distribution import moment
  from pymc.initial_point import make_initial_point_fn, make_initial_point_fns_per_chain
label_desc: Use image node_id 4 for calling the TestMoment obj's underlying member method code with example usage: obj.test_moment_from_dims(rv_cls) without return types