code: def print_groups():
      
      print("Printing information about all groups defined in the Gateway")
      groups = api(gateway.get_groups())
      if len(groups) == 0:
          exit(bold("No groups defined"))
  
      container = []
      for group in groups:
          container.append(api(group).raw)
      print(jsonify(container))
docs: Print all groups as JSON