class_docstr: Translates Instruction bytecode to a polars expression string.
class_docstr_tok: ["Translates","Instruction","bytecode","to","a","polars","expression","string","."]
docstr: Convert bytecode instruction to suitable intermediate op string.
code: def op(inst: Instruction) -> str:
      """Convert bytecode instruction to suitable intermediate op string."""
      if inst.opname in OpNames.CONTROL_FLOW:
          return OpNames.CONTROL_FLOW[inst.opname]
      elif inst.argrepr:
          return inst.argrepr
      elif inst.opname == "IS_OP":
          return "is not" if inst.argval else "is"
      elif inst.opname == "CONTAINS_OP":
          return "not in" if inst.argval else "in"
      elif inst.opname in OpNames.UNARY:
          return OpNames.UNARY[inst.opname]
      elif inst.opname == "BINARY_SUBSCR":
          return "replace"
      else:
          raise AssertionError(
              "unrecognized opname"
              "\n\nPlease report a bug to https://github.com/pola-rs/polars/issues"
              " with the content of function you were passing to `map` and the"
              f" following instruction object:\n{inst!r}"
          )
  
imports: from __future__ import annotations
  import datetime
  import dis
  import inspect
  import re
  import sys
  import warnings
  from bisect import bisect_left
  from collections import defaultdict
  from dis import get_instructions
  from inspect import signature
  from itertools import count, zip_longest
  from pathlib import Path
  from typing import TYPE_CHECKING, AbstractSet, Any, Callable, ClassVar, Iterator, Literal, NamedTuple, Union
label_desc: Use image node_id 3 for calling the InstructionTranslator obj's underlying member method code with example usage: obj.op(inst) and returns: OpNames, inst, unknown, unknown, OpNames, str