code: def validate_floatlike(floatlike: FloatLike) -> None:
      if not (
          isinstance(floatlike, float)
          or isinstance(floatlike, int)
          or isinstance(floatlike, np.floating)
          or isinstance(floatlike, np.integer)
      ):
          raise TypeError(f"Expected FloatLike, found {floatlike}")
  
file_path: Ax/ax/core/types.py
imports: import enum
  from typing import Any, Callable, DefaultDict, Dict, Hashable, List, Optional, Tuple, Union
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: validate_floatlike(floatlike) without return types