code: def _resolve_parameters(
      dim, reflection, expansion, contraction, shrinkage, dtype
  ):
      """Applies the [Gao and Han][3] presciption to the unspecified parameters."""
      dim = tf.cast(dim, dtype=dtype)
      reflection = 1.0 if reflection is None else reflection
      expansion = (1.0 + 2.0 / dim) if expansion is None else expansion
      contraction = (
          (0.75 - 1.0 / (2 * dim))
          if contraction is None
          else contraction
      )
      shrinkage = (1.0 - 1.0 / dim) if shrinkage is None else shrinkage
      return reflection, expansion, contraction, shrinkage
  
imports: import collections
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import tensorshape_util
label_desc: Use image node_id 14 for calling a global function with example usage: _resolve_parameters(dim, reflection, expansion, contraction, shrinkage, dtype) and returns: reflection,  expansion,  contraction,  shrinkage