code: def create_from_taskfile(self, taskfile):
          
          return TaskFileInfo(task=taskfile.task, version=taskfile.version, releasetype=taskfile.releasetype,
                              descriptor=taskfile.descriptor, typ=taskfile.typ)
docs: Create a new TaskFileInfo and return it for the given taskfile
  
          :param taskfile: the taskfile to represent
          :type taskfile: :class:`jukeboxcore.djadapter.models.TaskFile`
          :returns: a taskfileinfo
          :rtype: :class:`TaskFileInfo`
          :raises: None