def METHOD_NAME(file_name: str, write_mode: str, is_test: bool):
        """
        Dump node id, name, full_name, and category of all nodes in KG2.
        :param file_name: name of file to save to (TSV)
        :param write_mode: 'w' for overwriting the file, 'a' for appending to the file at the end (or creating a new on if it DNE)
        :param is_test: True if this is a test, False otherwise
        :return: None
        """
        query = f"match (n) return properties(n) as p, labels(n) as l {'limit 20' if is_test else ''}"
        res = _run_cypher_query(query)
        if res:
                with open(file_name, write_mode, encoding="utf-8") as fid:
                        for item in res:
                                prop_dict = item['p']
                                labels = item['l']
                                try:
                                        label = list(set(labels) - {'Base'}).pop()
                                except:
                                        label = ""
                                try:
                                        fid.write('%s\t' % prop_dict['id'])
                                except:
                                        fid.write('\t')
                                try:
                                        fid.write('%s\t' % remove_tab_newlines.sub(" ", prop_dict['name']))  # better approach
                                except:
                                        fid.write('\t')
                                try:
                                        fid.write('%s\t' % remove_tab_newlines.sub(" ", prop_dict['full_name']))
                                except:
                                        fid.write('\t')
                                try:
                                        fid.write('%s\n' % label)
                                except:
                                        fid.write('\n')
                print(f"Successfully created file '{file_name}'.")
        else:
                raise Exception(f"Failed to get results from Neo4j for {file_name}")
        return