def _Dynamic_GetSystemStats(self, unused_request, response,
                              unused_request_id):

    cpu = response.mutable_cpu()
    if self.default_cpu:
      cpu.CopyFrom(self.default_cpu)

    memory = response.mutable_memory()
    if self.default_memory:
      memory.CopyFrom(self.default_memory)

    self.num_calls["GetSystemStats"] = (
        self.num_calls.get("GetSystemStats", 0) + 1)
Mock version of System stats always returns fixed values.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/system/system_stub.py/SystemServiceStub._Dynamic_GetSystemStats