def _functions(expr, x):
    from sympy import Function
    return set(e.func for e in expr.atoms(Function) if x in e.free_symbols)
Find the types of functions in expr, to estimate the complexity.
dataset/ETHPy150Open sympy/sympy/sympy/integrals/meijerint.py/_functions