code: def create_task(self, element):
          
          dialog = TaskCreatorDialog(element=element, parent=self)
          dialog.exec_()
          task = dialog.task
          return task
docs: Create a new task for the given element
  
          :param element: the element for the task
          :type element: :class:`jukeboxcore.djadapter.models.Shot` | :class:`jukeboxcore.djadapter.models.Asset`
          :returns: None
          :rtype: None
          :raises: None