code: def fac2(ctx, x):
      if ctx.isinf(x):
          if x == ctx.inf:
              return x
          return ctx.nan
      return (
          2 ** (x / 2)
          * (ctx.pi / 2) ** ((ctx.cospi(x) - 1) / 4)
          * ctx.gamma(x / 2 + 1)
      )
  
file_path: catboost/contrib/python/mpmath/py3/mpmath/functions/factorials.py
imports: from ..libmp.backend import xrange
  from .functions import defun, defun_wrapped
label_desc: Use image node_id 6 for calling a global function with example usage: fac2(ctx, x) and returns: unknown, ctx, x