code: def save_pkl(obj, file):
      """Save an object in pkl format.
  
      Arguments
      ---------
      obj : object
          Object to save in pkl format
      file : str
          Path to the output file
      sampling_rate : int
          Sampling rate of the audio file, TODO: this is not used?
  
      Example
      -------
      >>> tmpfile = getfixture('tmpdir') / "example.pkl"
      >>> save_pkl([1, 2, 3, 4, 5], tmpfile)
      >>> load_pkl(tmpfile)
      [1, 2, 3, 4, 5]
      """
      with open(file, "wb") as f:
          pickle.dump(obj, f)
  
imports: import os
  import torch
  import logging
  import numpy
  import pickle
  import hashlib
  import csv
  import time
  import torchaudio
  import json
  import re
  from speechbrain.utils.torch_audio_backend import check_torchaudio_backend
label_desc: Use image node_id 20 for calling a global function with example usage: save_pkl(obj, file) without return types