code: def _CreateMessageFromTypeUrl(type_url, descriptor_pool):
      """Creates a message from a type URL."""
      db = symbol_database.Default()
      pool = db.pool if descriptor_pool is None else descriptor_pool
      type_name = type_url.split("/")[-1]
      try:
          message_descriptor = pool.FindMessageTypeByName(type_name)
      except KeyError:
          raise TypeError(
              "Can not find message descriptor by type_url: {0}.".format(
                  type_url
              )
          )
      message_class = db.GetPrototype(message_descriptor)
      return message_class()
  
imports: import base64
  from collections import OrderedDict
  import json
  import math
  from operator import methodcaller
  import re
  import sys
  from google.protobuf.internal import type_checkers
  from google.protobuf import descriptor
  from google.protobuf import symbol_database
label_desc: Use image node_id 6 for calling a global function with example usage: _CreateMessageFromTypeUrl(type_url, descriptor_pool) and returns: message_class