code: def sign(node=None):
      
      if not node:
          raise Exception("Specify either 'all' your specify token/host_name of node to sign. ")
      if node == 'all':
          node = 'unsigned'
      nodes = list_nodes(search=node)
      result = {}
      for token, i in nodes.items():
          i['access'] = 'node'
          i.save()
          result[token] = i
      return result
docs: Sign a specific node to grant it access
  
       you can specify "all" to sign all nodes
  
       returns the nodes that were signed