def METHOD_NAME(self):
    """Run the plugin."""
    self.config = self.state.document.settings.env.config
    self.env = self.state.document.settings.env
    self.record_dependencies = \
        self.state.document.settings.record_dependencies
    output_nodes = []
    location = os.path.normpath(
        os.path.join(self.env.srcdir,
                     self.config.autoyaml_root
                     + '/' + self.arguments[0]))
    if os.path.exists(location):
        print("This path exists")
    else:
        raise AutoYAMLException('location "%s" does not exists.' % (
                                location))
    if os.path.isfile(location):
        logger.debug('[autoyaml] parsing file: %s', location)
        try:
            output_nodes.extend(self._parse_file(location))
        except Exception as e:
            raise AutoYAMLException('Failed to parse YAML file: %s' % (location)) from e
    else:
        raise AutoYAMLException('%s:%s: location "%s" is not a file.' % (
                                self.env.doc2path(self.env.docname, None),
                                self.content_offset - 1,
                                location))
    self.record_dependencies.add(location)
    return output_nodes