code: def _get_static_dim(t):
      """Returns static dimension value if possible."""
      dim = t.shape.as_list()[-1]
      if dim is None:
          return tf.shape(t)[-1]
      else:
          return dim
  
file_path: tf-quant-finance/tf_quant_finance/math/random_ops/multivariate_normal.py
imports: import enum
  import numpy
  import tensorflow.compat.v2
  from tf_quant_finance.math.random_ops import halton
  from tf_quant_finance.math.random_ops import sobol
label_desc: Use image node_id 8 for calling a global function with example usage: _get_static_dim(t) and returns: tf, dim