code: def convert_instruction(i: dis.Instruction) -> Instruction:
      return Instruction(
          i.opcode,
          i.opname,
          i.arg,
          i.argval,
          i.offset,
          i.starts_line,
          i.is_jump_target,
          getattr(i, "positions", None),
      )
  
imports: import copy
  import dataclasses
  import dis
  import itertools
  import sys
  import types
  from typing import Any, Callable, cast, Dict, Iterator, List, Optional, Tuple
  from .bytecode_analysis import get_indexof, propagate_line_nums, remove_extra_line_nums, stacksize_analysis
label_desc: Use image node_id 1 for calling a global function with example usage: convert_instruction(i) and returns: Instruction