def uid(self, command, *args):
    if (command == 'SORT'):
        return ('OK', [b'19'])
    elif (command == 'FETCH'):
        uid = int(args[0])
        data = BODYSTRUCTURE_SAMPLE_WITH_FLAGS
        if (uid == 46931):
            if (args[1] == '(BODYSTRUCTURE)'):
                data = tests_data.BODYSTRUCTURE_ONLY_4
            elif ('HEADER.FIELDS' in args[1]):
                data = tests_data.BODYSTRUCTURE_SAMPLE_4
            else:
                data = tests_data.BODY_PLAIN_4
        elif (uid == 46932):
            if (args[1] == '(BODYSTRUCTURE)'):
                data = tests_data.BODYSTRUCTURE_ONLY_5
            elif ('HEADER.FIELDS' in args[1]):
                data = tests_data.BODYSTRUCTURE_SAMPLE_9
            else:
                data = tests_data.BODYSTRUCTURE_SAMPLE_10
        elif (uid == 33):
            if (args[1] == '(BODYSTRUCTURE)'):
                data = tests_data.BODYSTRUCTURE_EMPTY_MAIL
            else:
                data = tests_data.EMPTY_BODY
        elif (uid == 133872):
            data = tests_data.COMPLETE_MAIL
        return ('OK', data)
    elif (command == 'STORE'):
        return ('OK', [])
def uid(self, command, *args):
    if (command == 'SORT'):
        return ('OK', [b'19'])
    elif (command == 'FETCH'):
        uid = int(args[0])
        data = BODYSTRUCTURE_SAMPLE_WITH_FLAGS
        if (uid == 46931):
            if (args[1] == '(BODYSTRUCTURE)'):
                data = tests_data.BODYSTRUCTURE_ONLY_4
            elif ('HEADER.FIELDS' in args[1]):
                data = tests_data.BODYSTRUCTURE_SAMPLE_4
            else:
                data = tests_data.BODY_PLAIN_4
        elif (uid == 46932):
            if (args[1] == '(BODYSTRUCTURE)'):
                data = tests_data.BODYSTRUCTURE_ONLY_5
            elif ('HEADER.FIELDS' in args[1]):
                data = tests_data.BODYSTRUCTURE_SAMPLE_9
            else:
                data = tests_data.BODYSTRUCTURE_SAMPLE_10
        elif (uid == 33):
            if (args[1] == '(BODYSTRUCTURE)'):
                data = tests_data.BODYSTRUCTURE_EMPTY_MAIL
            else:
                data = tests_data.EMPTY_BODY
        elif (uid == 133872):
            data = tests_data.COMPLETE_MAIL
        return ('OK', data)
    elif (command == 'STORE'):
        return ('OK', [])