code: def init_split_entities(
      split_entities_config: Union[bool, Dict[Text, Any]],
      default_split_entity: bool,
  ) -> Dict[Text, bool]:
      """Initialise the behaviour for splitting entities by comma (or not).
  
      Returns:
          Defines desired behaviour for splitting specific entity types and
          default behaviour for splitting any entity types for which no behaviour
          is defined.
      """
      if isinstance(split_entities_config, bool):
          # All entities will be split according to `split_entities_config`
          split_entities_config = {
              SPLIT_ENTITIES_BY_COMMA: split_entities_config
          }
      else:
          # All entities not named in split_entities_config will be split
          # according to `split_entities_config`
          split_entities_config[
              SPLIT_ENTITIES_BY_COMMA
          ] = default_split_entity
      return split_entities_config
  
imports: from pathlib import Path
  import numpy
  from typing import Optional, Text, Dict, Any, Union, List, Tuple, TYPE_CHECKING
  import rasa.shared.utils.common
  import rasa.shared.utils.io
  import rasa.nlu.utils.bilou_utils
  from rasa.shared.constants import NEXT_MAJOR_VERSION_FOR_DEPRECATIONS
  from rasa.nlu.constants import NUMBER_OF_SUB_TOKENS
  import rasa.utils.io
  from rasa.utils.tensorflow.constants import LOSS_TYPE, RANKING_LENGTH, RENORMALIZE_CONFIDENCES, SIMILARITY_TYPE, EVAL_NUM_EXAMPLES, EVAL_NUM_EPOCHS, EPOCHS, SOFTMAX, MARGIN, AUTO, INNER, COSINE, SEQUENCE, CROSS_ENTROPY, CONSTRAIN_SIMILARITIES, MODEL_CONFIDENCE, TOLERANCE, CHECKPOINT_MODEL
  from rasa.utils.tensorflow.callback import RasaTrainingLogger, RasaModelCheckpoint
  from rasa.utils.tensorflow.data_generator import RasaBatchDataGenerator
  from rasa.utils.tensorflow.model_data import RasaModelData
  from rasa.shared.nlu.constants import SPLIT_ENTITIES_BY_COMMA
  from rasa.shared.exceptions import InvalidConfigException
label_desc: Use image node_id 19 for calling a global function with example usage: init_split_entities(split_entities_config, default_split_entity) and returns: split_entities_config