code: def get_kwarg_names(func):
      
      sig = inspect.signature(func)
      kwonlyargs = [p.name for p in sig.parameters.values()
                    if p.default is not p.empty]
      return kwonlyargs
docs: Return a list of valid kwargs to function func