code: def _get_model_metadata(model_class, metadata=None, version=None):
      """
      Returns user-defined metadata, making sure information all models should
      have is also available, as a dictionary
      """
      info = _get_tc_version_info()
      info["type"] = model_class
      if version is not None:
          info["version"] = str(version)
      if metadata is not None:
          info.update(metadata)
      return info
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
label_desc: Use image node_id 3 for calling a global function with example usage: _get_model_metadata(model_class, metadata, version) and returns: info