parameters: (variables, print_info=False)
return_statement: return total_size, total_bytes
docstring: Prints the names and shapes of the variables.
  
    Args:
      variables: list of variables, for example tf.global_variables().
      print_info: Optional, if true print variables and their shape.
  
    Returns:
      (total size of the variables, total bytes of the variables)
docstring_summary: Prints the names and shapes of the variables.
docstring_tokens: Prints the names and shapes of the variables .
function: def analyze_vars(variables, print_info=False):
    """Prints the names and shapes of the variables.
  
    Args:
      variables: list of variables, for example tf.global_variables().
      print_info: Optional, if true print variables and their shape.
  
    Returns:
      (total size of the variables, total bytes of the variables)
    """
    if print_info:
      print('---------')
      print('Variables: name (type shape) [size]')
      print('---------')
    total_size = 0
    total_bytes = 0
    for var in variables:
      # if var.num_elements() is None or [] assume size 0.
      var_size = var.get_shape().num_elements() or 0
      var_bytes = var_size * var.dtype.size
      total_size += var_size
      total_bytes += var_bytes
      if print_info:
        print(var.name, tensor_description(var), '[%d, bytes: %d]' %
              (var_size, var_bytes))
    if print_info:
      print('Total size of variables: %d' % total_size)
      print('Total bytes of variables: %d' % total_bytes)
    return total_size, total_bytes
function_tokens: def analyze_vars ( variables , print_info = False ) : if print_info : print ( '---------' ) print ( 'Variables: name (type shape) [size]' ) print ( '---------' ) total_size = 0 total_bytes = 0 for var in variables : # if var.num_elements() is None or [] assume size 0. var_size = var . get_shape ( ) . num_elements ( ) or 0 var_bytes = var_size * var . dtype . size total_size += var_size total_bytes += var_bytes if print_info : print ( var . name , tensor_description ( var ) , '[%d, bytes: %d]' % ( var_size , var_bytes ) ) if print_info : print ( 'Total size of variables: %d' % total_size ) print ( 'Total bytes of variables: %d' % total_bytes ) return total_size , total_bytes