code: def get_precision(dtype) -> SupportsFloat:
      """Get precision of a data type."""
      if np.issubdtype(dtype, np.floating):
          return np.finfo(dtype).precision
      else:
          return np.inf
  
imports: from typing import Dict, List, Optional, Sequence, SupportsFloat, Tuple, Type, Union
  import numpy
  import gym.error
  from gym import logger
  from gym.spaces.space import Space
label_desc: Use image node_id 4 for calling a global function with example usage: get_precision(dtype) and returns: np, np