code: def _get_async_or_non_blocking(function_name, non_blocking, kwargs):
      """Return the non-blocking flag given the function name and kwargs.
  
      Args:
          function_name (str): the name of the function being used.
          non_blocking (bool): the default value.
          **kwargs (dict): the kwargs passed to the function.
      """
      if not kwargs:
          return non_blocking
      if len(kwargs) != 1 or "async" not in kwargs:
          message = "{}() got an unexpected keyword argument '{}'"
          argument = list(kwargs.keys()).pop()
          raise TypeError(message.format(function_name, argument))
      warnings.warn("'async' is deprecated; use 'non_blocking'")
      return kwargs["async"]
  
imports: import copyreg
  import functools
  import sys
  import traceback
  import warnings
  from collections import defaultdict
  from typing import Any, DefaultDict, List, Optional
  import torch
label_desc: Use image node_id 4 for calling a global function with example usage: _get_async_or_non_blocking(function_name, non_blocking, kwargs) and returns: kwargs, non_blocking