def array_function(func, types, args, kwargs):
    function = implemented.get(func)
    if (function is None):
        return NotImplemented
    else:
        return function(*args, **kwargs)
def array_function(func, types, args, kwargs):
    function = implemented.get(func)
    if (function is None):
        return NotImplemented
    else:
        return function(*args, **kwargs)