def get_meters(name: str) -> MetersDict:
    """Get Meter instances aggregated under a given *name*.

    Returns:
        MetersDict or None if no metrics have been logged under *name*.
    """
    return _aggregators.get(name, None)
Get Meter instances aggregated under a given *name*.

Returns:
MetersDict or None if no metrics have been logged under *name*.
fairseq/logging/metrics.py