code: def print_smart_tasks():
      
      print("Printing information about smart tasks")
      tasks = api(gateway.get_smart_tasks())
      if len(tasks) == 0:
          exit(bold("No smart tasks defined"))
  
      container = []
      for task in tasks:
          container.append(api(task).task_control.raw)
      print(jsonify(container))
docs: Print smart tasks as JSON