code: def _set_model_metadata(mlmodel, model_class, metadata, version=None):
      """
      Sets user-defined metadata, making sure information all models should have
      is also available
      """
      info = _get_model_metadata(model_class, metadata, version)
      mlmodel.user_defined_metadata.update(info)
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
label_desc: Use image node_id 4 for calling a global function with example usage: _set_model_metadata(mlmodel, model_class, metadata, version) without return types