from typing import TypeVar

from ..math.mittagleffler import mlf


ArrayLike = TypeVar('ArrayLike')

#
# def valid_function(expr: str, extra_namespace: dict = None):
#
#     local = {'mlf': mlf}
#     if extra_namespace is not None:
#         local.update(extra_namespace)
#
#     try:
#         return ne.evaluate(expr, {}, local), True
#     except:
#         return None, False
