def operation_helper(<EOL>self, path=None, operations=None, methods=None, func=None, **kwargs<EOL>):
for method in methods:<EOL><INDENT>yaml_doc_string = yaml_utils.load_operations_from_docstring(func.__doc__)<EOL>yaml_doc_string = yaml.safe_load(<EOL>str(yaml_doc_string).replace(<EOL>"<STR_LIT>", self.__class__.__name__<EOL>)<EOL>)<EOL>if yaml_doc_string:<EOL><INDENT>operations[method.lower()] = yaml_doc_string.get(method.lower(), {})<EOL><DEDENT>else:<EOL><INDENT>operations[method.lower()] = {}<EOL><DEDENT><DEDENT>
May mutate operations.
        :param str path: Path to the resource
        :param dict operations: A `dict` mapping HTTP methods to operation object. See
        :param list methods: A list of methods registered for this path