code: def test_custom_prior():
      def CustomPrior(name, *args, dims=None, **kwargs):
          return pm.Normal(name, *args, dims=dims, **kwargs)
  
      data = bmb.load_data("my_data")
  
      priors = {
          "x": bmb.Prior("CustomPrior", mu=0, sigma=5, dist=CustomPrior)
      }
      model = bmb.Model("y ~ x", data, priors=priors)
      model.build()
      assert (
          model.backend.model.free_RVs[-1].str_repr()
          == "x ~ Normal(0, 5)"
      )
  
imports: from os.path import dirname, join
  import pytest
  import numpy
  import pymc
  import pandas
  from scipy import special
  import bambi
label_desc: Use image node_id 20 for calling a global function with example usage: test_custom_prior() and returns: pm