code: def _convert_neural_network_weights_to_fp16(full_precision_model):
      """
      Utility function to convert a full precision (float) MLModel to a
      half precision MLModel (float16).
  
      Parameters
      ----------
      full_precision_model: MLModel
          Model which will be converted to half precision. Currently conversion
          for only neural network models is supported. If a pipeline model is
          passed in then all embedded neural network models embedded within
          will be converted.
  
      Returns
      -------
      model: MLModel
          The converted half precision MLModel
  
      """
      spec = full_precision_model.get_spec()
      return _get_model(
          _convert_neural_network_spec_weights_to_fp16(spec)
      )
  
imports: import math
  import numpy
  import os
  import six
  import warnings
  import sys
  from coremltools.proto import Model_pb2
  from coremltools.models._deprecation import deprecated
  from .._deps import _HAS_SKLEARN
label_desc: Use image node_id 11 for calling a global function with example usage: _convert_neural_network_weights_to_fp16(full_precision_model) and returns: _get_model