code: def dump_stats(self, pattern):
          
          if not isinstance(pattern, basestring):
              raise TypeError("pattern can only be an instance of type basestring")
          self._call("dumpStats",
                       in_p=[pattern])
docs: Dumps VM statistics.
  
          in pattern of type str
              The selection pattern. A bit similar to filename globbing.