code: def _get_weight_param_summary(wp):
      """Get a summary of _NeuralNetwork_pb2.WeightParams
      Args:
      wp : _NeuralNetwork_pb2.WeightParams - the _NeuralNetwork_pb2.WeightParams message to display
      Returns:
      a str summary for wp
      """
      summary_str = ""
      if wp.HasField("quantization"):
          nbits = wp.quantization.numberOfBits
          quant_type = (
              "linearly"
              if wp.quantization.HasField("linearQuantization")
              else "lookup-table"
          )
          summary_str += "{}-bit {} quantized".format(nbits, quant_type)
  
      if len(wp.floatValue) > 0:
          summary_str += "({} floatValues)".format(len(wp.floatValue))
      if len(wp.float16Value) > 0:
          summary_str += "({} bytes float16Values)".format(
              len(wp.float16Value)
          )
      if len(wp.rawValue) > 0:
          summary_str += "({} bytes rawValues)".format(len(wp.rawValue))
  
      return summary_str
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/coremltools/models/neural_network/spec_inspection_utils.py
imports: from __future__ import print_function
  from ...proto import NeuralNetwork_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: _get_weight_param_summary(wp) and returns: summary_str