code: def __init__(
      self, name, index, annotations, return_type, args, api_name
  ):
      self.name = name
      self.index = index
  
      self.min_version = None
      self.annotations = []
      for annotation in annotations:
          # String checks, because manual import breaks isinstance
          if type(annotation).__name__ == "StealRef":
              self.annotations.append(annotation)
          elif type(annotation).__name__ == "MinVersion":
              if self.min_version is not None:
                  raise ValueError("Two minimum versions specified!")
              self.min_version = annotation
          else:
              raise ValueError(f"unknown annotation {annotation}")
  
      self.return_type = return_type
      self.args = args
      self.api_name = api_name
  
imports: import hashlib
  import io
  import os
  import re
  import sys
  import importlib.util
  import textwrap
  from os.path import join
label_desc: Use image node_id 1 to create a new FunctionApi object  with example: obj = FunctionApi(name, index, annotations, return_type, args, api_name)