code: def nodes_with_tag(tag):
      
      nodes = lib.get_nodes_with_tag(tag, env.chef_environment,
                                     littlechef.include_guests)
      nodes = [n['name'] for n in nodes]
      if not len(nodes):
          print("No nodes found with tag '{0}'".format(tag))
          sys.exit(0)
      return node(*nodes)
docs: Sets a list of nodes that have the given tag assigned and calls node()