code: def formatted(self):
          # pylint: disable=line-too-long
            # noqa: E501
          # pylint: enable=line-too-long
          ret = "Statistics (times in seconds, lengths in Bytes):\n"
          if self.enabled:
              snapshot = sorted(self.snapshot(),
                                key=lambda item: item[1].avg_time,
                                reverse=True)
  
              # Test to see if any server time is non-zero
              include_svr = False
              for name, stats in snapshot:  # pylint: disable=unused-variable
                  # pylint: disable=protected-access
                  if stats._server_time_stored:
                      include_svr = True
              # pylint: disable=protected-access
              if include_svr:
                  ret += OperationStatistic._formatted_header_w_svr
              else:
                  ret += OperationStatistic._formatted_header
  
              for name, stats in snapshot:  # pylint: disable=unused-variable
                  ret += stats.formatted(include_svr)
          else:
              ret += "Disabled"
          return ret.strip()
docs: Return a human readable string with the statistics for this container.
          The operations are sorted by decreasing average time.
  
          The three columns for `ServerTime` are included only if the WBEM server
          has returned WBEM server response times.
  
          Example if statistics are enabled::
  
              Statistics (times in seconds, lengths in Bytes):
              Count Excep         ClientTime              ServerTime             RequestLen                ReplyLen       Operation
                      Cnt     Avg     Min     Max     Avg     Min     Max    Avg    Min    Max      Avg      Min      Max
                  3     0   0.234   0.100   0.401   0.204   0.080   0.361   1233   1000   1500    26667    20000    35000 EnumerateInstances
                  1     0   0.100   0.100   0.100   0.080   0.080   0.080   1200   1200   1200    22000    22000    22000 EnumerateInstanceNames
                  . . .
  
          Example if statistics are disabled::
  
              Statistics (times in seconds, lengths in Bytes):
              Disabled