code: def get_output_tensor_names(model_buffer: bytearray) -> List[str]:
      """Gets a list of the output tensor names."""
      subgraph = get_subgraph(model_buffer)
      tensor_names = []
      for i in range(subgraph.OutputsLength()):
          index = subgraph.Outputs(i)
          tensor_names.append(
              subgraph.Tensors(index).Name().decode("utf-8")
          )
      return tensor_names
  
file_path: mediapipe/mediapipe/tasks/python/metadata/metadata_writers/writer_utils.py
imports: from typing import List
  from mediapipe.tasks.metadata import schema_py_generated
label_desc: Use image node_id 2 for calling a global function with example usage: get_output_tensor_names(model_buffer) and returns: tensor_names