code: def _has_non_zero_elem(rss_deltas: List[int]) -> bool:
      for rss in rss_deltas:
          if rss > 0:
              return True
  
      return False
  
imports: import time
  import unittest
  from collections import deque, namedtuple
  from dataclasses import dataclass
  from typing import cast, Deque, List
  import torch
  from torchtnt.utils.memory import get_tensor_size_bytes_map, measure_rss_deltas, RSSProfiler
label_desc: Use image node_id 1 for calling a global function with example usage: _has_non_zero_elem(rss_deltas) and returns: False, True