code: def get_shape(
      value: Union[types.FloatTensor, types.IntTensor]
  ) -> types.IntTensor:
      r"""Returns the `shape` of a given `Tensor`.
  
      Args:
        value: Scalar `Tensor of integers or real values.
  
      Returns:
        `Tensor` of integers with rank 1.
      """
      result = value.shape
      return tf.shape(value) if None in result.as_list() else result
  
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 3 for calling a global function with example usage: get_shape(value) and returns: unknown