code: def primitive_pass_through(sess, node, output_dim, group_size, rank):
      if not is_replicas(output_dim) and not is_partition(output_dim):
          return
      source_dims, num_partitions = node.parser.emit_dims_by_id(
          output_dim
      )
  
      if is_replicas(output_dim) and num_partitions == 0:
          yield (0, source_dims, {})
          return
  
      connectors = dict(
          [
              (
                  inp,
                  sess.backend.link(
                      "$",
                      -1,
                      None,
                      is_param=(node.inputs[inp].op_type == "param"),
                  ),
              )
              for inp in source_dims
              if is_replicas(source_dims[inp])
          ]
      )
      yield (0, source_dims, connectors)
  
file_path: tutel/tutel/parted/patterns.py
imports: from .solver import register_primitive
label_desc: Use image node_id 3 for calling a global function with example usage: primitive_pass_through(sess, node, output_dim, group_size, rank) without return types