<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_uploaded_container(self, msg_info):
 """ returns 0 if it doesn't correspond to an uploaded container -1 if it corresponds to an uploaded container but it is corrupted 1 if it corresponds to an uploaded container and is OK """

        results = {
            'BAD': -1,
            'NOT_FCB': 0,
            'OK': 1
        }

        for part in msg_info.msg_body.walk():
            if part.is_multipart():
                continue

            """
            if part.get('Content-Disposition') is None:
                print("no content dispo")
                continue
            """
            if part.get_content_type() == 'text/plain':
                if self._is_content_from_fcb(part.get_payload()):
                    self._log.debug("Body detected as FCB: %s", part.get_payload())
                else:
                    self._log.debug("Body doesn't match FCB: %s", part.get_payload())
                    continue

            attachment_name = self._get_attachment_name(part)
            if not attachment_name:
                self._log.debug("Couldn't get attachment name. Will ignore the part.")
                continue

            files_container = self._get_files_container_by_name(attachment_name)
            if files_container:
                sha1_in_db = files_container.sha1
                msg_info.files_containers_id = files_container.id
                tmp_file = FileInfo(os.path.join(tempfile.gettempdir(), "downloaded.tmp"))
                fp = open(tmp_file.path, 'wb')
                fp.write(part.get_payload(decode=1))
                fp.flush()
                fp.close()

                if tmp_file.sha1 == sha1_in_db:
                    self._log.info("File container '%s' verified!", attachment_name)
                    result = results['OK']
                else:
                    self._log.error("File container '%s' doesn't match the sha1 sum. Expected '%s' but got '%s'",
                                    attachment_name, sha1_in_db, tmp_file.sha1)
                    result = results['BAD']
                os.remove(tmp_file.path)
                return result
            else:
                self._log.debug("Attached file '%s' not found in DB. Will ignore this mail.", attachment_name)
        return results['NOT_FCB']