nodes: 0, module; 1, function_definition; 2, function_name:_process_value; 3, parameters; 4, block; 5, identifier:self; 6, identifier:value; 7, identifier:type; 8, expression_statement; 9, if_statement; 10, return_statement; 11, comment:"""
          Process a value that will be sent to backend
  
          :param value: the value to return
  
          :param type: hint for what sort of value this is
          :type type: str
  
          """; 12, not_operator; 13, block; 14, identifier:value; 15, call; 16, expression_statement; 17, identifier:isinstance; 18, argument_list; 19, assignment; 20, identifier:value; 21, binary_operator:six.string_types + (list,); 22, identifier:value; 23, call; 24, attribute; 25, tuple; 26, attribute; 27, argument_list; 28, identifier:six; 29, identifier:string_types; 30, identifier:list; 31, identifier:json; 32, identifier:dumps; 33, identifier:value
code: def _process_value(self, value, type):
          """
          Process a value that will be sent to backend
  
          :param value: the value to return
  
          :param type: hint for what sort of value this is
          :type type: str
  
          """
  
          if not isinstance(value, six.string_types + (list,)):
              value = json.dumps(value)
          return value