docstr: Test CPU OOM error detection.
docstr_tok: ["Test","CPU","OOM","error","detection","."]
code: def test_is_out_of_cpu_memory(self) -> None:
      """Test CPU OOM error detection."""
      cpu_oom_error = RuntimeError(
          "DefaultCPUAllocator: can't allocate memory"
      )
      self.assertTrue(is_out_of_cpu_memory(cpu_oom_error))
      not_cpu_oom_error = RuntimeError("RuntimeError: blah")
      self.assertFalse(is_out_of_cpu_memory(not_cpu_oom_error))
  
file_path: tnt/tests/utils/test_oom.py
imports: import os
  import tempfile
  import unittest
  import torch
  from torchtnt.utils.device import get_device_from_env
  from torchtnt.utils.oom import _bytes_to_mb_gb, is_out_of_cpu_memory, is_out_of_cuda_memory, is_out_of_memory_error, log_memory_snapshot
  from torchtnt.utils.version import is_torch_version_geq_2_0
label_desc: Use image node_id 1 for calling the OomTest obj's underlying member method code with example usage: obj.test_is_out_of_cpu_memory() without return types