code: def log2(value: types.FloatTensor) -> types.FloatTensor:
      r"""Returns the point-wise base-2 logarithm a given `Tensor`.
  
      ```python
      import tensorflow as tf
      import tf_quant_finance as tff
  
      # Example: Computing the base-2 logarithm of a given vector.
  
      tff.math.qmc.utils.log2(tf.constant([1, 2, 4, 8, 16], dtype=tf.float32))
      # ==> tf.Tensor([0., 1., 2., 3., 4.], shape=(5,), dtype=float32)
      ```
  
      Args:
        value: Positive scalar `Tensor` of real values.
  
      Returns:
        `Tensor` with the same `shape` and `dtype` as `value` equal to `ln(value) /
        ln(2)`.
      """
      return tf.math.log(value) / tf.math.log(
          tf.constant(2, dtype=value.dtype)
      )
  
file_path: tf-quant-finance/tf_quant_finance/math/qmc/utils.py
imports: from typing import Union
  import tensorflow.compat.v2
  from tf_quant_finance import types
label_desc: Use image node_id 2 for calling a global function with example usage: log2(value) and returns: unknown