code: def get_consumed_reclaimed_size(output):
      pat = re.compile(
          "Consumed\s+Reclaimed\nCPU:\s+([\d,\.]+)\s+([\d,\.]+) MB\s+\((\s*[\d\.]+)%\)",
          flags=re.MULTILINE,
      )
      match = pat.findall(output)
      if match:
          (consumed_size, reclaimed_size, reclaimed_pct) = map(
              str2flt, match[0]
          )
          return consumed_size, reclaimed_size, reclaimed_pct
      else:
          raise ValueError(f"failed to match pattern {pat}")
  
imports: import numpy
  import torch
  import re, gc
  from math import isclose
  import inspect
label_desc: Use image node_id 12 for calling a global function with example usage: get_consumed_reclaimed_size(output) and returns: consumed_size,  reclaimed_size,  reclaimed_pct