def METHOD_NAME(func_id, args):
    """Set the maximum number of threads."""
    _internal_assert(func_id == "max_num_threads", "This function cannot be directly invoked!")
    _internal_assert(args.__len__() <= 1, "At most one argument accepted!")
    if args.__len__() == 0:
        res = Target.current().METHOD_NAME
    else:
        _internal_assert(isinstance(args[0], _expr.IntImm), "In tvm bool should be uint")
        res = Target.current(args[0].value).METHOD_NAME
    return convert(res)