def METHOD_NAME(*ty_args, **ty_kwargs):
    def decorate(func):
        # If in optimized mode, disable type checking
        if not type_check_enabled:
            return func
        # Map function argument names to supplied types
        sig = signature(func)
        bound_types = sig.bind_partial(*ty_args, **ty_kwargs).arguments
        @wraps(func)
        def wrapper(*args, **kwargs):
            bound_values = sig.bind(*args, **kwargs)
            # Enforce type assertions across supplied arguments
            for name, value in bound_values.arguments.items():
                if name in bound_types:
                    annotation_type = get_annotation_type(bound_types[name])
                    if not isinstance(value, annotation_type):
                        raise TypeError(
                            'Function: {}, argument {} must be {}, but it is {}'.format(func, name, annotation_type, type(value))
                            )
            return func(*args, **kwargs)
        return wrapper
    return decorate