code: def parse_caffemodel(file_path):
      
      f = open(file_path, 'rb')
      contents = f.read()
  
      net_param = caffe_pb2.NetParameter()
      net_param.ParseFromString(contents)
  
      layers = find_layers(net_param)
      return layers
docs: parses the trained .caffemodel file
  
      filepath: /path/to/trained-model.caffemodel
  
      returns: layers