code: def load_metafile(filepath):
      
      try:
          with open(filepath, 'r', encoding='utf-8') as file:
              return email.message_from_file(file)
      except FileNotFoundError:
          logger.warning("Category file %s not found", filepath)
          orm.delete(c for c in model.Category if c.file_path == filepath)
          orm.commit()
  
      return None
docs: Load a metadata file from the filesystem