def METHOD_NAME(cls, docstring):
    docstring = dedent(docstring)
    match = cls.META_REGEX.search(docstring)
    if match is not None:
        meta = yaml.safe_load(match.group(1))
        docstring = cls.META_REGEX.sub("", docstring).strip()
    else:
        meta = None
    return docstring, meta