code: def drop_remove(*args, **kwargs):
          
          dropped_item = args[0]
          field_list = kwargs['field_list']
          num_duplicate = 0
          for i in range(field_list.count()):
              if dropped_item.text() == field_list.item(i).text():
                  num_duplicate += 1
          if num_duplicate > 1:
              # Notes(IS): For some reason, removeItemWidget is not working.
              field_list.takeItem(field_list.row(dropped_item))
docs: Action when we need to remove dropped item.
  
          :param *args: Position arguments.
          :type *args: list
  
          :param kwargs: Keywords arguments.
          :type kwargs: dict