code: def float_factorial(n: int) -> float:
      """Compute the factorial and return as a float
  
      Returns infinity when result is too large for a double
      """
      return float(math.factorial(n)) if n < 171 else np.inf
  
imports: from contextlib import contextmanager
  import functools
  import operator
  import sys
  import warnings
  import numbers
  from collections import namedtuple
  import inspect
  import math
  from typing import Optional, Union, TYPE_CHECKING, TypeVar
  import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: float_factorial(n) and returns: unknown