code: def split_params_into_shared_and_expert_params(
      params: List[torch.nn.Parameter],
  ) -> Tuple[torch.nn.Parameter, torch.nn.Parameter]:
      shared_params, expert_params = [], []
      for p in params:
          if is_moe_param(p):
              expert_params.append(p)
          else:
              shared_params.append(p)
      return shared_params, expert_params
  
file_path: deepspeed/deepspeed/moe/utils.py
imports: from typing import List, Tuple, Dict
  import torch
  from .layer import MoE
label_desc: Use image node_id 3 for calling a global function with example usage: split_params_into_shared_and_expert_params(params) and returns: shared_params,  expert_params