code: def get_dist_strategy(
      strategy: Union[str, Dict[str, Any]]
  ) -> Type[DistributedStrategy]:
      name = strategy
      if isinstance(strategy, dict):
          name = strategy["type"]
      return STRATEGIES[name]()
  
file_path: ludwig/ludwig/distributed/__init__.py
imports: from typing import Any, Dict, Type, Union
  from ludwig.distributed.base import DistributedStrategy, LocalStrategy
label_desc: Use image node_id 8 for calling a global function with example usage: get_dist_strategy(strategy) and returns: STRATEGIES