parameters: (func, arg_names)
return_statement: return arg_infos
docstring: Returns an `_ArgInfo` for each argument of `func` specified by `arg_names`.
  
    Args:
      func: The function whose arguments should be described.
      arg_names: The names of the arguments to get info for.
  
    Returns:
      A tuple of `_ArgInfo`s.
docstring_summary: Returns an `_ArgInfo` for each argument of `func` specified by `arg_names`.
docstring_tokens: Returns an _ArgInfo for each argument of func specified by arg_names .
function: def _get_arg_infos(func, arg_names):
    """Returns an `_ArgInfo` for each argument of `func` specified by `arg_names`.
  
    Args:
      func: The function whose arguments should be described.
      arg_names: The names of the arguments to get info for.
  
    Returns:
      A tuple of `_ArgInfo`s.
    """
    arg_infos = []
  
    # Inspect the func's argspec to find the position of each arg.
    arg_spec = tf_inspect.getargspec(func)
    for argname in arg_names:
      assert isinstance(argname, str)
      is_list = argname.startswith('[') and argname.endswith(']')
      if is_list:
        argname = argname[1:-1]
      if argname not in arg_spec.args:
        raise ValueError('Argument %r not found function in %s.  Args=%s' %
                         (argname, func, arg_spec.args))
      arg_infos.append(_ArgInfo(argname, arg_spec.args.index(argname), is_list))
    return arg_infos
function_tokens: def _get_arg_infos ( func , arg_names ) : arg_infos = [ ] # Inspect the func's argspec to find the position of each arg. arg_spec = tf_inspect . getargspec ( func ) for argname in arg_names : assert isinstance ( argname , str ) is_list = argname . startswith ( '[' ) and argname . endswith ( ']' ) if is_list : argname = argname [ 1 : - 1 ] if argname not in arg_spec . args : raise ValueError ( 'Argument %r not found function in %s.  Args=%s' % ( argname , func , arg_spec . args ) ) arg_infos . append ( _ArgInfo ( argname , arg_spec . args . index ( argname ) , is_list ) ) return arg_infos