code: def select_eps_for_addition(dtype: tf.DType) -> type_alias.Float:
      """Returns 2 * machine epsilon based on `dtype`.
  
      This function picks an epsilon slightly greater than the machine epsilon,
      which is the upper bound on relative error. This value ensures that
      `1.0 + eps != 1.0`.
  
      Args:
        dtype: The `tf.DType` of the tensor to which eps will be added.
  
      Raises:
        ValueError: If `dtype` is not a floating type.
  
      Returns:
        A `float` to be used to make operations safe.
      """
      return 2.0 * np.finfo(dtype.as_numpy_dtype).eps
  
file_path: graphics/tensorflow_graphics/util/asserts.py
imports: from typing import Optional
  from absl import flags
  import numpy
  import tensorflow
  from tensorflow_graphics.util import tfg_flags
  from tensorflow_graphics.util import type_alias
label_desc: Use image node_id 9 for calling a global function with example usage: select_eps_for_addition(dtype) and returns: unknown