code: def _warn_keyword_parameter(func_name, kwargs):
      # type: (str, Dict[str, bool]) -> bool
      """
      Backwards-compatibility with Python 2.7 to allow treating 'warn' as keyword-only.
      """
      if not kwargs:
          return False
      elif len(kwargs) > 1 or "warn" not in kwargs:
          kwargs.pop("warn", None)
          arg = next(iter(kwargs.keys()))
          raise TypeError(
              "{}() got an unexpected keyword argument {!r}".format(
                  func_name, arg
              )
          )
      return kwargs["warn"]
  
imports: from __future__ import absolute_import
  import distutils.util
  import collections
  import logging
  import os
  import platform
  import re
  import struct
  import sys
  import sysconfig
  import warnings
  from ._typing import TYPE_CHECKING, cast
label_desc: Use image node_id 2 for calling a global function with example usage: _warn_keyword_parameter(func_name, kwargs) and returns: kwargs, False