code: def standard_kwargs(kwarg_names, expanded_args):
      r"""Separate args and kwargs from `__torch_function__`s that standardize kwargs.
  
      Most `__torch_function__`s standardize the kwargs that they give, so this will separate
      the args and kwargs they pass. Functions that don't are linear and convND.
      """
      kwarg_values = expanded_args[
          len(expanded_args) - len(kwarg_names) :
      ]
      expanded_args_without_kwargs = expanded_args[
          : len(expanded_args) - len(kwarg_names)
      ]
      expanded_kwargs = dict(zip(kwarg_names, kwarg_values))
      return expanded_args_without_kwargs, expanded_kwargs
  
file_path: pytorch/torch/nn/utils/_expanded_weights/expanded_weights_utils.py
imports: from typing import Optional
  import torch
  from .expanded_weights_impl import ExpandedWeight
label_desc: Use image node_id 2 for calling a global function with example usage: standard_kwargs(kwarg_names, expanded_args) and returns: expanded_args_without_kwargs,  expanded_kwargs