code: def stats_job(self, job: JobOrID) -> Stats:
          
          return self._stats_cmd(b'stats-job %d' % _to_id(job))
docs: Returns job statistics.
  
          :param job: The job or job ID to return statistics for.