def METHOD_NAME(method_name):
    for key, value in zip(self.spec.method_names, self.spec.method_specs):
        if method_name == key:
            return value
    raise ValueError(f"Method `{method_name}` is not found in the module spec. {self.spec}")