code: def annotate_sparse_output_shape(
      tensor: tf.SparseTensor, shape: tf.Tensor
  ):
      """Annotates a sparse output with a given shape."""
      tf.compat.v1.add_to_collection(
          _ANNOTATED_SPARSE_SHAPE_TENSORS, tensor.values
      )
      tf.compat.v1.add_to_collection(_ANNOTATED_SPARSE_SHAPES, shape)
  
imports: import collections
  import itertools
  from typing import Any, Callable, Dict, Iterable, List, Mapping, Optional, Tuple, Union
  from absl import logging
  import tensorflow
  from tensorflow_transform import common
  from tensorflow_transform import common_types
  from tensorflow_transform import graph_context
  from tensorflow_transform import tf2_utils
  from tensorflow_transform import tf_utils
  from tensorflow_transform.saved import saved_transform_io_v2
  from tensorflow_transform.tf_metadata import schema_utils
  from tfx_bsl.tfxio import tensor_representation_util
  from google.protobuf import any_pb2
  from tensorflow.python.eager import function
  from tensorflow.python.framework import ops
  from tensorflow_metadata.proto.v0 import schema_pb2
label_desc: Use image node_id 19 for calling a global function with example usage: annotate_sparse_output_shape(tensor, shape) without return types