code: def compat_kwargs(kwargs):
      
      warn_deprecations(kwargs)
      for old, new in RENAMED_VARS.items():
          if old in kwargs:
              kwargs[new] = kwargs[old]
              # update cross references
              for c_old, c_new in RENAMED_VARS.items():
                  if c_new == new:
                      kwargs[c_old] = kwargs[new]
docs: To keep backwards compat change the kwargs to new names