code: def deconv_output_length(input_length, filter_size, padding, stride):
      """Determines output length of a transposed convolution given input length.
  
      Args:
          input_length: integer.
          filter_size: integer.
          padding: one of "same", "valid", "full".
          stride: integer.
  
      Returns:
          The output length (integer).
      """
      if input_length is None:
          return None
      input_length *= stride
      if padding == "valid":
          input_length += max(filter_size - stride, 0)
      elif padding == "full":
          input_length -= stride + filter_size - 2
      return input_length
  
file_path: tensorflow-upstream/tensorflow/python/layers/utils.py
imports: from tensorflow.python.framework import smart_cond
  from tensorflow.python.ops import cond
  from tensorflow.python.ops import variables
label_desc: Use image node_id 7 for calling a global function with example usage: deconv_output_length(input_length, filter_size, padding, stride) and returns: input_length, None