code: def supports_inf(dtype: DTypeLike) -> bool:
      """Return true if the dtype supports infinity, else return False."""
      typ = np.dtype(dtype).type
      if typ in {
          float8_e4m3b11fnuz,
          float8_e4m3fn,
          float8_e4m3fnuz,
          float8_e5m2fnuz,
      }:
          return False
      return issubdtype(dtype, np.inexact)
  
imports: from __future__ import annotations
  import abc
  import builtins
  import functools
  from typing import cast, overload, Any, Literal, Union
  import warnings
  import ml_dtypes
  import numpy
  from jax._src import config
  from jax._src.typing import DType, DTypeLike
  from jax._src.util import set_module
  from jax._src import traceback_util
label_desc: Use image node_id 1 for calling a global function with example usage: supports_inf(dtype) and returns: issubdtype, False