code: def _create_app_without_api(
      cors: Optional[Union[Text, List[Text]]] = None
  ) -> Sanic:
      app = Sanic("rasa_core_no_api", configure_logging=False)
      server.add_root_route(app)
      server.configure_cors(app, cors)
      return app
  
imports: import asyncio
  import logging
  import uuid
  import os
  from functools import partial
  from typing import Any, List, Optional, TYPE_CHECKING, Text, Union, Dict
  import rasa.core.utils
  from rasa.plugin import plugin_manager
  from rasa.shared.exceptions import RasaException
  import rasa.shared.utils.common
  import rasa.utils
  import rasa.utils.common
  import rasa.utils.io
  from rasa import server, telemetry
  from rasa.constants import ENV_SANIC_BACKLOG
  from rasa.core import agent, channels, constants
  from rasa.core.agent import Agent
  from rasa.core.channels import console
  from rasa.core.channels.channel import InputChannel
  from rasa.core.utils import AvailableEndpoints
  import rasa.shared.utils.io
  from sanic import Sanic
  from asyncio import AbstractEventLoop
label_desc: Use image node_id 3 for calling a global function with example usage: _create_app_without_api(cors) and returns: app