code: def _not_a_proper_number(num: Any) -> bool:
      """Returns true if num is inf or NaN, false otherwise."""
      return math.isnan(num) or math.isinf(num)
  
imports: import logging
  import math
  from dataclasses import dataclass
  from enum import Enum
  from typing import Any, Sequence, Callable, Optional, List
  import numpy
  from pipeline_dp import input_validators
label_desc: Use image node_id 2 for calling a global function with example usage: _not_a_proper_number(num) and returns: unknown