@staticmethod<EOL><INDENT>def _get_media_category(is_direct_message, file_type):<DEDENT>
if is_direct_message:<EOL><INDENT>prefix = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>prefix = '<STR_LIT>'<EOL><DEDENT>if file_type in IMAGE_MIMETYPES:<EOL><INDENT>if file_type == '<STR_LIT>':<EOL><INDENT>return prefix + '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>return prefix + '<STR_LIT>'<EOL><DEDENT><DEDENT>elif file_type == '<STR_LIT>':<EOL><INDENT>return prefix + '<STR_LIT>'<EOL><DEDENT>
:reference: https://developer.twitter.com/en/docs/direct-messages/message-attachments/guides/attaching-media
            :allowed_param: