@staticmethod
  def inline_instrument(dst_bytecode, src_bytecode, original_lineno, \
                        instr_counter=-1, template=None, location=UNKNOWN):
    template_idx, template_length = 0, 0
    b_current_index, b_lineno, b_op, b_arg, b_cflow_in, b_code_object = src_bytecode[0]

    if template is not None:
      template_length = len(template)
      # Unroll the template until we reached PLACEHOLDER
      while template_idx < template_length:
        t_op, t_arg = template[template_idx]
        if t_op == PLACEHOLDER:
          break
        dst_bytecode.append(((b_current_index, original_lineno, t_op, t_arg,
                              b_cflow_in, b_code_object),
                             instr_counter))
        template_idx += 1

    # Inline the entire instrument code
    bc_i, bc_length = 0, len(src_bytecode)
    while bc_i < bc_length:
      b_current_index, b_lineno, b_op, b_arg, b_cflow_in, b_code_object = src_bytecode[bc_i]
      if b_op != RETURN_VALUE:
        dst_bytecode.append(((b_current_index, original_lineno, b_op, b_arg,
                              b_cflow_in, b_code_object),
                             instr_counter))
      bc_i += 1

    if template is not None:
      template_idx += 1
      while template_idx < template_length:
        t_op, t_arg = template[template_idx]
        dst_bytecode.append(((b_current_index, original_lineno, t_op, t_arg,
                              b_cflow_in, b_code_object),
                             instr_counter))
        template_idx += 1
Inline the instrument bytecode in place of the current state of ``dst_bytecode``.
dataset/ETHPy150Open neuroo/equip/equip/rewriter/merger.py/Merger.inline_instrument