code: def test_max_memory(self):
      self.add_master()
      self.add_worker(n_cpu=1)
      cluster_addr = "localhost:{}".format(self.port)
      time.sleep(5)
      parl.connect(cluster_addr)
      actor = Actor()
      time.sleep(30)
      self.assertEqual(1, get_global_client().actor_num.value)
      del actor
      actor1 = Actor()
      actor1.add_500mb()
      time.sleep(60)
      self.assertEqual(0, get_global_client().actor_num.value)
  
file_path: PARL/parl/remote/tests/actor_max_memory_test.py
imports: import os
  import parl
  import unittest
  import time
  from parl.remote.client import get_global_client
  from parl.utils.test_utils import XparlTestCase
label_desc: Use image node_id 1 for calling the TestMaxMemory obj's underlying member method code with example usage: obj.test_max_memory() without return types