code: def mp_wright_bessel(a, b, x, dps=50, maxterms=2000):
      """Compute Wright's generalized Bessel function as Series with mpmath."""
      with mp.workdps(dps):
          a, b, x = mp.mpf(a), mp.mpf(b), mp.mpf(x)
          res = mp.nsum(
              lambda k: x**k
              / mp.fac(k)
              * rgamma_cached(a * k + b, dps=dps),
              [0, mp.inf],
              tol=dps,
              method="s",
              steps=[maxterms],
          )
          return mpf2float(res)
  
file_path: scipy/scipy/special/_precompute/wright_bessel_data.py
imports: from functools import lru_cache
  import os
  from time import time
  import numpy
  from scipy.special._mptestutils import mpf2float
label_desc: Use image node_id 2 for calling a global function with example usage: mp_wright_bessel(a, b, x, dps, maxterms) and returns: mpf2float