code: def test_convert_action_labels_to_ids(domain: Domain):
      trackers_as_actions = [
          ["utter_greet", "utter_channel"],
          ["utter_greet", "utter_default", "utter_goodbye"],
      ]
  
      tracker_featurizer = TrackerFeaturizer()
  
      actual_output = tracker_featurizer._convert_labels_to_ids(
          trackers_as_actions, domain
      )
      expected_output = ragged_array_to_ndarray(
          [
              np.array(
                  [
                      domain.action_names_or_texts.index("utter_greet"),
                      domain.action_names_or_texts.index(
                          "utter_channel"
                      ),
                  ]
              ),
              np.array(
                  [
                      domain.action_names_or_texts.index("utter_greet"),
                      domain.action_names_or_texts.index(
                          "utter_default"
                      ),
                      domain.action_names_or_texts.index(
                          "utter_goodbye"
                      ),
                  ]
              ),
          ]
      )
  
      assert expected_output.size == actual_output.size
      for expected_array, actual_array in zip(
          expected_output, actual_output
      ):
          assert np.all(expected_array == actual_array)
  
imports: from typing import Text, Dict, List, Optional
  import numpy
  import pytest
  from rasa.core.featurizers.single_state_featurizer import SingleStateFeaturizer
  from rasa.core.featurizers.single_state_featurizer import IntentTokenizerSingleStateFeaturizer
  from rasa.core.featurizers.tracker_featurizers import TrackerFeaturizer
  from rasa.core.featurizers.tracker_featurizers import MaxHistoryTrackerFeaturizer
  from rasa.core.featurizers.tracker_featurizers import IntentMaxHistoryTrackerFeaturizer
  from rasa.core.featurizers.tracker_featurizers import FullDialogueTrackerFeaturizer
  from rasa.shared.core.domain import Domain
  from tests.core.utilities import user_uttered
  from rasa.shared.nlu.training_data.features import Features
  from rasa.shared.nlu.constants import INTENT, ACTION_NAME
  from rasa.shared.core.constants import ACTION_LISTEN_NAME, ACTION_UNLIKELY_INTENT_NAME, USER, PREVIOUS_ACTION
  from rasa.shared.core.events import ActionExecuted
  from rasa.shared.core.trackers import DialogueStateTracker
  from rasa.utils.tensorflow.constants import LABEL_PAD_ID
  from rasa.utils.tensorflow.model_data import ragged_array_to_ndarray
  from rasa.core.exceptions import InvalidTrackerFeaturizerUsageError
label_desc: Use image node_id 3 for calling a global function with example usage: test_convert_action_labels_to_ids(domain) without return types