class_docstr: SignatureRunner class for running TFLite models using SignatureDef.
  
  This class should be instantiated through TFLite Interpreter only using
  get_signature_runner method on Interpreter.
  Example,
  signature = interpreter.get_signature_runner("my_signature")
  result = signature(input_1=my_input_1, input_2=my_input_2)
  print(result["my_output"])
  print(result["my_second_output"])
  All names used are this specific SignatureDef names.
  
  Notes:
    No other function on this object or on the interpreter provided should be
    called while this object call has not finished.
class_docstr_tok: ["SignatureRunner","class","for","running","TFLite","models","using","SignatureDef",".","This","class","should","be","instantiated","through","TFLite","Interpreter","only","using","get_signature_runner","method","on","Interpreter",".","Example",",","signature","=","interpreter.get_signature_runner","(","``","my_signature","''",")","result","=","signature","(","input_1=my_input_1",",","input_2=my_input_2",")","print","(","result","[","``","my_output","''","]",")","print","(","result","[","``","my_second_output","''","]",")","All","names","used","are","this","specific","SignatureDef","names",".","Notes",":","No","other","function","on","this","object","or","on","the","interpreter","provided","should","be","called","while","this","object","call","has","not","finished","."]
docstr: Constructor.
  
  Args:
    interpreter: Interpreter object that is already initialized with the
      requested model.
    signature_key: SignatureDef key to be used.
code: def __init__(self, interpreter=None, signature_key=None):
      """Constructor.
  
      Args:
        interpreter: Interpreter object that is already initialized with the
          requested model.
        signature_key: SignatureDef key to be used.
      """
      if not interpreter:
          raise ValueError("None interpreter provided.")
      if not signature_key:
          raise ValueError("None signature_key provided.")
      self._interpreter = interpreter
      self._interpreter_wrapper = interpreter._interpreter
      self._signature_key = signature_key
      signature_defs = interpreter._get_full_signature_list()
      if signature_key not in signature_defs:
          raise ValueError("Invalid signature_key provided.")
      self._signature_def = signature_defs[signature_key]
      self._outputs = self._signature_def["outputs"].items()
      self._inputs = self._signature_def["inputs"]
  
      self._subgraph_index = (
          self._interpreter_wrapper.GetSubgraphIndexFromSignature(
              self._signature_key
          )
      )
  
imports: import ctypes
  import enum
  import os
  import platform
  import sys
  import numpy
label_desc: Use image node_id 1 to create a new SignatureRunner object  with example: obj = SignatureRunner(interpreter, signature_key)