nodes: 0, module; 1, function_definition; 2, function_name:convert_to_output_format; 3, parameters; 4, block; 5, identifier:param; 6, expression_statement; 7, function_definition; 8, return_statement; 9, comment:"""
      Helper function to convert parameters to a valid string, that can be used in a column name.
      Does the opposite which is used in the from_columns function.
  
      The parameters are sorted by their name and written out in the form
  
         <param name>_<param value>__<param name>_<param value>__ ...
  
      If a <param_value> is a string, this method will wrap it with parenthesis ", so "<param_value>"
  
      :param param: The dictionary of parameters to write out
      :type param: dict
  
      :return: The string of parsed parameters
      :rtype: str
      """; 10, function_name:add_parenthesis_if_string_value; 11, parameters; 12, block; 13, call; 14, identifier:x; 15, if_statement; 16, attribute; 17, generator_expression; 18, call; 19, block; 20, else_clause; 21, string:"__"; 22, identifier:join; 23, binary_operator:str(key) + "_" + add_parenthesis_if_string_value(param[key]); 24, for_in_clause; 25, identifier:isinstance; 26, argument_list; 27, return_statement; 28, block; 29, binary_operator:str(key) + "_"; 30, call; 31, identifier:key; 32, call; 33, identifier:x; 34, identifier:string_types; 35, binary_operator:'"' + str(x) + '"'; 36, return_statement; 37, call; 38, string:"_"; 39, identifier:add_parenthesis_if_string_value; 40, argument_list; 41, identifier:sorted; 42, argument_list; 43, binary_operator:'"' + str(x); 44, string:'"'; 45, call; 46, identifier:str; 47, argument_list; 48, subscript; 49, call; 50, string:'"'; 51, call; 52, identifier:str; 53, argument_list; 54, identifier:key; 55, identifier:param; 56, identifier:key; 57, attribute; 58, argument_list; 59, identifier:str; 60, argument_list; 61, identifier:x; 62, identifier:param; 63, identifier:keys; 64, identifier:x
code: def convert_to_output_format(param):
      """
      Helper function to convert parameters to a valid string, that can be used in a column name.
      Does the opposite which is used in the from_columns function.
  
      The parameters are sorted by their name and written out in the form
  
         <param name>_<param value>__<param name>_<param value>__ ...
  
      If a <param_value> is a string, this method will wrap it with parenthesis ", so "<param_value>"
  
      :param param: The dictionary of parameters to write out
      :type param: dict
  
      :return: The string of parsed parameters
      :rtype: str
      """
  
      def add_parenthesis_if_string_value(x):
          if isinstance(x, string_types):
              return '"' + str(x) + '"'
          else:
              return str(x)
  
      return "__".join(str(key) + "_" + add_parenthesis_if_string_value(param[key]) for key in sorted(param.keys()))