code: def get_data(batch_size: int, seq_len: int = 10) -> dict:
      input_ids = torch.randint(
          0, 50257, (batch_size, seq_len), device="cuda"
      )
      attention_mask = torch.ones_like(input_ids)
      return dict(input_ids=input_ids, attention_mask=attention_mask)
  
file_path: ColossalAI/applications/Chat/tests/test_experience.py
imports: import copy
  import os
  import pytest
  import torch
  import torch.distributed
  from coati.experience_buffer import NaiveExperienceBuffer
  from coati.experience_maker import NaiveExperienceMaker
  from coati.models.base import RewardModel
  from coati.models.gpt import GPTActor, GPTCritic
  from coati.trainer.ppo import _set_default_generate_kwargs
  from coati.trainer.strategies import DDPStrategy, GeminiStrategy
  from coati.trainer.strategies.colossalai import LowLevelZeroStrategy
  from transformers.models.gpt2.configuration_gpt2 import GPT2Config
  from colossalai.testing import rerun_if_address_is_in_use, spawn
label_desc: Use image node_id 1 for calling a global function with example usage: get_data(batch_size, seq_len) and returns: dict