code: def isfinite(val):
      return (val >= torch.finfo(torch.float32).smallest_normal) and (
          val <= torch.finfo(torch.float32).max
      )
  
file_path: apex/tests/L0/run_amp/test_update_scale_hysteresis.py
imports: import unittest
  import random
  import math
  import torch
label_desc: Use image node_id 1 for calling a global function with example usage: isfinite(val) and returns: unknown