code: def _is_invalid_number(value):
      if not isinstance(value, float):
          return False
  
      return math.isnan(value) or math.isinf(value)
  
file_path: fiftyone/fiftyone/core/json.py
imports: import dataclasses
  from datetime import date, datetime
  import math
  from bson import ObjectId
  import numpy
  import fiftyone.core.utils
label_desc: Use image node_id 4 for calling a global function with example usage: _is_invalid_number(value) and returns: unknown, False