def generate_func_call(name, args=None, kwargs=None):
all_args = []<EOL>if args:<EOL><INDENT>all_args.extend(args)<EOL><DEDENT>if kwargs:<EOL><INDENT>all_args.extend('<STR_LIT>'.format(k, v)<EOL>for k, v in kwargs if v is not None)<EOL><DEDENT>return '<STR_LIT>'.format(name, '<STR_LIT:U+002CU+0020>'.join(all_args))<EOL>
Generates code to call a function.

Args:
    name (str): The function name.
    args (list[str]): Each positional argument.
    kwargs (list[tuple]): Each tuple is (arg: str, value: str). If
        value is None, then the keyword argument is omitted. Otherwise,
        if the value is not a string, then str() is called on it.

Returns:
    str: Code to call a function.