def METHOD_NAME(level=None, registry=None):
    """
    Initialize metrics reporting with the given level and registry. This
    should be called before get_collector().
    """
    MetricsCollector.set_instance(level, registry)