code: def _wp_to_fp16wp(wp):
      assert wp
      # If the float32 field is empty do nothing.
      if len(wp.floatValue) == 0:
          return
      wp.float16Value = _fp32_to_fp16_byte_array(wp.floatValue)
      del wp.floatValue[:]
  
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 7 for calling a global function with example usage: _wp_to_fp16wp(wp) without return types