code: def _load_c2_weights(file_path):
      if file_path.endswith("pkl"):
          weights = _load_c2_pickled_weights(file_path)
      elif file_path.endswith("npy"):
          with g_pathmgr.open(file_path, "rb") as fopen:
              weights = np.load(
                  fopen, allow_pickle=True, encoding="latin1"
              )[()]
      return weights
  
file_path: vissl/extra_scripts/convert_caffe2_to_vissl_alexnet.py
imports: import argparse
  import logging
  import pickle
  import sys
  from collections import OrderedDict
  import numpy
  import torch
  from iopath.common.file_io import g_pathmgr
label_desc: Use image node_id 3 for calling a global function with example usage: _load_c2_weights(file_path) and returns: weights