def METHOD_NAME(running_mean_std_module: Union[nn.Module, ScriptModule, RecursiveScriptModule]):
    m = running_mean_std_module
    res = dict()
    for name, buf in m.named_buffers():
        # converts MODULE_NAME.running_mean_std.obs.running_mean to obs.running_mean
        name = "_".join(name.split(".")[-2:])
        if name.endswith("running_mean"):
            res[name] = buf.float().mean()
        elif name.endswith("running_var"):
            res[name.replace("_var", "_std")] = torch.sqrt(buf.float() + _NORM_EPS).mean()
    return res