code: def create_app() -> Sanic:
      bot_app = Sanic("callback_server", configure_logging=False)
  
      @bot_app.post("/bot")
      def print_response(request: Request) -> HTTPResponse:
          """Print bot response to the console."""
          bot_response = request.json.get("text")
          print(f"\n{bot_response}")
  
          body = {"status": "message sent"}
          return response.json(body, status=200)
  
      return bot_app
  
label_desc: Use image node_id 1 for calling a global function with example usage: create_app() and returns: bot_app, response