parameters: (variables, print_info=False)
return_statement: return total_size
docstring: Prints the names and shapes of the variables.
  
    Args:
      variables: list of variables, for example tf.all_variables().
      print_info: Optional, if true print variables and their shape.
  
    Returns:
      total size 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.all_variables().
      print_info: Optional, if true print variables and their shape.
  
    Returns:
      total size of the variables.
    """
    if print_info:
      print('---------')
      print('Variables: name (type shape) [size]')
      print('---------')
    total_size = 0
    for var in variables:
      # if var.num_elements() is None or [] assume size 0.
      var_size = var.get_shape().num_elements() or 0
      total_size += var_size
      if print_info:
        print(var.name, tensor_description(var), '[' + str(var_size) + ']')
    return total_size
function_tokens: def analyze_vars ( variables , print_info = False ) : if print_info : print ( '---------' ) print ( 'Variables: name (type shape) [size]' ) print ( '---------' ) total_size = 0 for var in variables : # if var.num_elements() is None or [] assume size 0. var_size = var . get_shape ( ) . num_elements ( ) or 0 total_size += var_size if print_info : print ( var . name , tensor_description ( var ) , '[' + str ( var_size ) + ']' ) return total_size