code: def status(self, work_spec_name):
          '''Get a summary dictionary for some work spec.
  
          The keys are the strings :meth:`num_available`, :meth:`num_pending`,
          :meth:`num_blocked`, :meth:`num_finished`, :meth:`num_failed`,
          and :meth:`num_tasks`, and the values are the values returned
          from those functions.
  
          '''
          return dict(
              num_available=self.num_available(work_spec_name),
              num_pending=self.num_pending(work_spec_name),
              num_blocked=self.num_blocked(work_spec_name),
              num_finished=self.num_finished(work_spec_name),
              num_failed=self.num_failed(work_spec_name),
              num_tasks=self.num_tasks(work_spec_name),
              f status(self, work_spec_name):
          '''Get a summary dictionary for some work spec.
  
          The keys are the strings :meth:`num_available`, :meth:`num_pending`,
          :meth:`num_blocked`, :meth:`num_finished`, :meth:`num_failed`,
          and :meth:`num_tasks`, and the values are the values returned
          from those functions.
  
          '''
          return dict(
              num_available=self.num_available(work_spec_name),
              num_pending=self.num_pending(work_spec_name),
              num_blocked=self.num_blocked(work_spec_name),
              num_finished=self.num_finished(work_spec_name),
              num_failed=self.num_failed(work_spec_name),
              num_tasks=self.num_tasks(work_spec_name),
              )
docs: Get a summary dictionary for some work spec.
  
          The keys are the strings :meth:`num_available`, :meth:`num_pending`,
          :meth:`num_blocked`, :meth:`num_finished`, :meth:`num_failed`,
          and :meth:`num_tasks`, and the values are the values returned
          from those functions.