code: def get_model_type(model):
      return get_attr_wrapped_model(model, "model_type")
  
imports: import math
  import operator
  from functools import reduce
  import torch
  from megatron.core import parallel_state
  from megatron.core.dist_checkpointing.mapping import ShardedTensor
label_desc: Use image node_id 4 for calling a global function with example usage: get_model_type(model) and returns: get_attr_wrapped_model