code: def data_gen():
      input_ids = torch.tensor(
          [[5941, 15, 2670, 3543, 632, 2075, 632, 2075]],
          dtype=torch.int64,
      )
      attention_mask = torch.tensor([[1, 1, 1, 1, 1, 1, 1, 1]])
      return dict(input_ids=input_ids, attention_mask=attention_mask)
  
imports: import torch
  from colossalai.shardformer.modeling.chatglm2_6b.configuration_chatglm import ChatGLMConfig
  from colossalai.shardformer.modeling.chatglm2_6b.modeling_chatglm import ChatGLMForConditionalGeneration, ChatGLMModel
  from ..registry import ModelAttribute, model_zoo
label_desc: Use image node_id 1 for calling a global function with example usage: data_gen() and returns: dict