def METHOD_NAME(self, name: str, method: Callable[..., Any]) -> None:
    """Binds a name to a method.
    These method callables are substituted into all fields that follow
    the `method:<method_name>` syntax. If `method_name` is not bound,
    an exception will be raised during loading.
    Args:
        name: The name of the method, as referenced in the loaded
            files.
        method: The callable to bind.
    """
    self.bound_methods[name] = method