class_docstr: Introspect UDF bytecode and determine if we can rewrite as native expression.
class_docstr_tok: ["Introspect","UDF","bytecode","and","determine","if","we","can","rewrite","as","native","expression","."]
code: def __init__(
      self, function: Callable[[Any], Any], map_target: MapTarget
  ):
      try:
          original_instructions = get_instructions(function)
      except TypeError:
          # in case we hit something that can't be disassembled (eg: code object
          # unavailable, like a bare numpy ufunc that isn't in a lambda/function)
          original_instructions = iter([])
  
      self._function = function
      self._map_target = map_target
      self._param_name = self._get_param_name(function)
      self._rewritten_instructions = RewrittenInstructions(
          instructions=original_instructions,
      )
  
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 1 to create a new BytecodeParser object  with example: obj = BytecodeParser(function, map_target)