<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def submit_xmlrpc_metrics(method=None):
 """ Submit metrics. """


    def decorator(f):
        def wrapped(context, request):
            metrics = request.find_service(IMetricsService, context=None)
            metrics.increment("warehouse.xmlrpc.call", tags=[f"rpc_method:{method}"])
            with metrics.timed(
                "warehouse.xmlrpc.timing", tags=[f"rpc_method:{method}"]
            ):
                return f(context, request)

        return wrapped

    return decorator