code: def test_seeding_advi_fit():
      with pm.Model():
          x = pm.Normal("x", 0, 10, initval="prior")
          approx1 = pm.fit(
              random_seed=42,
              n=10,
              method="advi",
              obj_optimizer=pm.adagrad_window,
              progressbar=False,
          )
          approx2 = pm.fit(
              random_seed=42,
              n=10,
              method="advi",
              obj_optimizer=pm.adagrad_window,
              progressbar=False,
          )
          np.testing.assert_allclose(
              approx1.mean.eval(), approx2.mean.eval()
          )
  
file_path: pymc/tests/variational/test_approximations.py
imports: import numpy
  import pytensor
  import pytest
  import pymc
  from pymc.variational.approximations import Empirical, MeanField
  from tests import models
label_desc: Use image node_id 6 for calling a global function with example usage: test_seeding_advi_fit() without return types