code: def params_to_bytes(params):
      """
      Turn params (OrderedDict of variable name -> ndarray) into
      serialized bytes for storing.
  
      Note: `numpy.savez` does not save the ordering.
  
      :param params: (OrderedDict) Dictionary mapping variable
          names to numpy arrays of the current parameters of the
          model.
      :return: (bytes) Bytes object of the serialized content.
      """
      # Create byte-buffer and save params with
      # savez function, and return the bytes.
      byte_file = io.BytesIO()
      np.savez(byte_file, **params)
      serialized_params = byte_file.getvalue()
      return serialized_params
  
file_path: stable-baselines/stable_baselines/common/save_util.py
imports: import base64
  from collections import OrderedDict
  import io
  import json
  import pickle
  import cloudpickle
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: params_to_bytes(params) and returns: serialized_params