code: def print_node(node, detailed=False):
      
      nodename = node['name']
      print(colors.yellow("\n" + nodename))
      # Roles
      if detailed:
          for role in get_roles_in_node(node):
              print_role(_get_role(role), detailed=False)
      else:
          print('  Roles: {0}'.format(", ".join(get_roles_in_node(node))))
      # Recipes
      if detailed:
          for recipe in get_recipes_in_node(node):
              print "  Recipe:", recipe
              print "    attributes: {0}".format(node.get(recipe, ""))
      else:
          print('  Recipes: {0}'.format(", ".join(get_recipes_in_node(node))))
      # Node attributes
      print "  Node attributes:"
      for attribute in node.keys():
          if attribute == "run_list" or attribute == "name":
              continue
          print "    {0}: {1}".format(attribute, node[attribute])
docs: Pretty prints the given node