code: def get_visualization_tags_map() -> Dict[str, List[str]]:
      """
      Returns map between repository tags and list of corresponding models for visualizations.
      """
      # Search for tags.
      operations_map = {}
      for repo_name in ("model", "data_operation"):
          repo = OperationTypesRepository(repo_name)
          for operation in repo.operations:
              tag = repo.get_first_suitable_operation_tag(
                  operation.id, repo.default_tags
              )
              operations_map[tag] = (operations_map.get(tag) or []) + [
                  operation.id
              ]
      # Sort tags.
      tags_model = OperationTypesRepository.DEFAULT_MODEL_TAGS
      tags_data = OperationTypesRepository.DEFAULT_DATA_OPERATION_TAGS
      operations_map = {
          tag: operations_map[tag]
          for tag in tags_model + tags_data
          if tag in operations_map
      }
      return operations_map
  
imports: import json
  import os
  from collections import defaultdict
  from dataclasses import dataclass
  from typing import Dict, List, Optional, TYPE_CHECKING, Union
  import numpy
  from golem.core.log import default_log
  from golem.utilities.data_structures import ensure_wrapped_in_sequence
  from fedot.core.constants import AUTO_PRESET_NAME, BEST_QUALITY_PRESET_NAME
  from fedot.core.repository.dataset_types import DataTypesEnum
  from fedot.core.repository.json_evaluation import import_enums_from_str, import_strategy_from_str, read_field
  from fedot.core.repository.tasks import Task, TaskTypesEnum
label_desc: Use image node_id 2 for calling a global function with example usage: get_visualization_tags_map() and returns: operations_map