code: def memory_str(self) -> str:
      if self.memory > 1e6:
          return f"{int(self.memory/1e6)}M"
      if self.memory > 1e3:
          return f"{int(self.memory/1e3)}K"
      return str(self.memory)
  
file_path: rich/examples/top_lite_simulator.py
imports: import datetime
  import random
  import sys
  import time
  from dataclasses import dataclass
  from rich import box
  from rich.console import Console
  from rich.live import Live
  from rich.table import Table
label_desc: Use image node_id 1 for calling the Process obj's underlying member method code with example usage: obj.memory_str() and returns: str, int, str, int, str