code: def finite_range(
      arr: npt.ArrayLike, check_nan: ty.Literal[True]
  ) -> tuple[Scalar, Scalar, bool]:
      ...
  
imports: from __future__ import annotations
  import io
  import sys
  import typing
  import warnings
  from functools import reduce
  from operator import getitem, mul
  from os.path import exists, splitext
  import numpy
  from ._compression import COMPRESSED_FILE_LIKES
  from .casting import OK_FLOATS, shared_range
  from .externals.oset import OrderedSet
label_desc: Use image node_id 18 for calling a global function with example usage: finite_range(arr, check_nan) without return types