def METHOD_NAME(cursor: Cursor, f: TextIO, spaces: int) -> None:
    """ 
    Low level cursor output to a file.
    @param cursor Represents the current node of the AST as an Cursor object from libclang.
    @param f Open file object for output.
    @param spaces Number of spaces.
    """
    spelling = ''
    displayname = ''
    if cursor.spelling:
        spelling = cursor.spelling
    if cursor.displayname:
        displayname = cursor.displayname
    kind = cursor.kind
    f.write(indent(spaces) + spelling + ' <' + str(kind) + '> ')
    if cursor.location.file:
        f.write(cursor.location.file.name + '\n')
    f.write(indent(spaces+1) + '"' + displayname + '"\n')