code: def partition(
      model,
      data_kwargs,
      num_microbatches,
      pp_rank: int,
      chunk: int,
      stage_num: int,
  ):
      module = create_partition_module(
          pp_rank, stage_num, model, data_kwargs, num_microbatches
      )
      return module
  
imports: import argparse
  import time
  from functools import partial
  import torch
  from model_zoo import model_builder
  from torch import nn
  from colossalai.fx import ColoTracer
  from colossalai.fx.passes.adding_split_node_pass import gpipe_dp_split_pass, split_with_split_nodes_pass
  from colossalai.fx.passes.meta_info_prop import MetaInfoProp
  from colossalai.legacy.pipeline.middleware.adaptor import get_fx_topology
  from colossalai.legacy.pipeline.rpc._pipeline_schedule import FillDrainPipelineEngine
  from colossalai.legacy.pipeline.rpc.utils import rpc_run
  from colossalai.logging import disable_existing_loggers, get_dist_logger
label_desc: Use image node_id 6 for calling a global function with example usage: partition(model, data_kwargs, num_microbatches, pp_rank, chunk, stage_num) and returns: module