code: def set_memory(self, total=None, static=None):
          
          if total:
              self.params["rem"]["mem_total"] = total
          if static:
              self.params["rem"]["mem_static"] = static
docs: Set the maxium allowed memory.
  
          Args:
              total: The total memory. Integer. Unit: MBytes. If set to None,
                  this parameter will be neglected.
              static: The static memory. Integer. Unit MBytes. If set to None,
                  this parameterwill be neglected.