code: def entity_type_split(
      entities_batch: List[List[str]], tags_batch: List[List[str]]
  ) -> Tuple[List[List[str]], List[List[str]], List[List[str]]]:
      f_entities_batch, f_types_batch, f_tags_batch = [], [], []
      for entities_list, tags_list in zip(entities_batch, tags_batch):
          f_entities_list, f_types_list, f_tags_list = [], [], []
          for entity, tag in zip(entities_list, tags_list):
              if tag != "T":
                  f_entities_list.append(entity)
                  f_tags_list.append(tag.lower())
              else:
                  f_types_list.append(entity)
          f_entities_batch.append(f_entities_list)
          f_tags_batch.append(f_tags_list)
          f_types_batch.append(f_types_list)
      return f_entities_batch, f_tags_batch, f_types_batch
  
imports: import re
  from collections import defaultdict
  from logging import getLogger
  from string import punctuation
  from typing import List, Tuple, Union, Any
  import numpy
  from nltk.corpus import stopwords
  from deeppavlov.core.commands.utils import expand_path
  from deeppavlov.core.common.registry import register
  from deeppavlov.core.models.component import Component
label_desc: Use image node_id 1 for calling a global function with example usage: entity_type_split(entities_batch, tags_batch) and returns: f_entities_batch,  f_tags_batch,  f_types_batch