def METHOD_NAME(specs, name=""):
    """named_spec"""
    if isinstance(specs, _NamedTensorSpec):
        specs.named(name)
        return
    if isinstance(specs, dict):
        for k in specs.keys():
            METHOD_NAME(specs[k], f"{name}/{k}")
        return
    for k, _ in enumerate(specs):
        METHOD_NAME(specs[k], f"{name}/{k}")
    return