code: def _get_full_output(node, for_output=False):
      '''
      Helper function for _list_nodes to loop through all node information.
      Returns a dictionary containing the full information of a node.
      '''
      ret = {}
      for item in six.iterkeys(node):
          value = node[item]
          if value is not None and for_output:
              value = six.text_type(value)
          ret[item] = value
      return ref _get_full_output(node, for_output=False):
      '''
      Helper function for _list_nodes to loop through all node information.
      Returns a dictionary containing the full information of a node.
      '''
      ret = {}
      for item in six.iterkeys(node):
          value = node[item]
          if value is not None and for_output:
              value = six.text_type(value)
          ret[item] = value
      return ret
docs: Helper function for _list_nodes to loop through all node information.
      Returns a dictionary containing the full information of a node.