def METHOD_NAME(self):
    cmd = ui.Subcommand('export', help='export data from beets')
    cmd.func = self.run
    cmd.parser.add_option(
        '-l', '--library', action='store_true',
        help='show library fields instead of tags',
    )
    cmd.parser.add_option(
        '-a', '--album', action='store_true',
        help='show album fields instead of tracks (implies "--library")',
    )
    cmd.parser.add_option(
        '--append', action='store_true', default=False,
        help='if should append data to the file',
    )
    cmd.parser.add_option(
        '-i', '--include-keys', default=[],
        action='append', dest='included_keys',
        help='comma separated list of keys to show',
    )
    cmd.parser.add_option(
        '-o', '--output',
        help='path for the output file. If not given, will print the data'
    )
    cmd.parser.add_option(
        '-f', '--format', default='json',
        help="the output format: json (default), jsonlines, csv, or xml"
    )
    return [cmd]