<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def warn_logging(logger):
 # type: (logging.Logger) -> Callable """Create a `showwarning` function that uses the given logger. Arguments: logger (~logging.Logger):
 the logger to use. Returns: function: a function that can be used as the `warnings.showwarning` callback. """

    def showwarning(message, category, filename, lineno, file=None, line=None):
        logger.warning(message)
    return showwarning