code: def register_text_input_callback(
      model: inference.Model, image: np.ndarray, colab_output: Any
  ):
      """Creates and registers the Python part of the text input callback.
  
      Args:
        model: inference.Model instance.
        image: Uint8 image on which detection will be performed.
        colab_output: google.colab.output module which needs to be imported in the
          Colab notebook with `from google.colab import output as colab_output`.
      """
      callback = functools.partial(
          _text_input_py_callback, model=model, image=image
      )
      colab_output.register_callback(
          TEXT_INPUT_PY_CALLBACK_NAME, callback
      )
  
imports: import base64
  import functools
  import json
  from typing import Any, Mapping, Union
  from bokeh import models
  from bokeh.models import callbacks
  from bokeh.models import widgets
  import matplotlib
  import matplotlib.pyplot
  import numpy
  from scenic.model_lib.base_models import box_utils
  from scenic.projects.owl_vit.notebooks import inference
label_desc: Use image node_id 1 for calling a global function with example usage: register_text_input_callback(model, image, colab_output) without return types