code: def _get_tracker_store(
      endpoints: "AvailableEndpoints",
  ) -> "TrackerStore":
      """Get `TrackerStore` from `endpoints`.
  
      Prints an error and exits if no tracker store could be loaded.
  
      Args:
          endpoints: `AvailableEndpoints` to initialize the tracker store from.
  
      Returns:
          Initialized tracker store.
  
      """
      if not endpoints.tracker_store:
          rasa.shared.utils.cli.print_error_and_exit(
              f"Could not find a `tracker_store` section in the supplied "
              f"endpoints file. Instructions on how to configure a tracker store "
              f"can be found here: {DOCS_URL_TRACKER_STORES}. "
              f"Exiting. "
          )
  
      from rasa.core.tracker_store import TrackerStore
  
      return TrackerStore.create(endpoints.tracker_store)
  
imports: import argparse
  import asyncio
  import logging
  import typing
  from typing import List, Text, Optional
  from rasa import telemetry
  from rasa.cli import SubParsersAction
  import rasa.core.utils
  import rasa.shared.utils.cli
  import rasa.utils.common
  from rasa.cli.arguments import export
  from rasa.shared.constants import DOCS_URL_EVENT_BROKERS, DOCS_URL_TRACKER_STORES
  from rasa.exceptions import PublishingError
  from rasa.shared.exceptions import RasaException
  from rasa.core.brokers.pika import PikaEventBroker
label_desc: Use image node_id 2 for calling a global function with example usage: _get_tracker_store(endpoints) and returns: TrackerStore