def METHOD_NAME(name, dynamics, formulae):
    if name not in attributes:
        raise ValueError(
            f"Unknown attribute name: {name}; valid names: {', '.join(attributes)}"
        )
    return attributes[name](dynamics, formulae)