code: def data_gen():
      input_ids = torch.tensor(
          [[15496, 11, 616, 3290, 318, 13779, 318, 13779]],
          dtype=torch.int64,
      )
      attention_mask = torch.tensor(
          [[1, 1, 1, 1, 1, 1, 1, 1]], dtype=torch.int64
      )
      return dict(input_ids=input_ids, attention_mask=attention_mask)
  
file_path: colossalai/tests/test_infer/test_hybrid_chatglm2.py
imports: import importlib.util
  import pytest
  import torch
  import torch.distributed
  from packaging import version
  import colossalai
  from colossalai.inference import InferenceEngine
  from colossalai.shardformer.modeling.chatglm2_6b.configuration_chatglm import ChatGLMConfig
  from colossalai.shardformer.modeling.chatglm2_6b.modeling_chatglm import ChatGLMForConditionalGeneration
  from colossalai.testing import clear_cache_before_run, parameterize, rerun_if_address_is_in_use, spawn
label_desc: Use image node_id 1 for calling a global function with example usage: data_gen() and returns: dict