code: def to_np(var):
      return var.data.cpu().numpy()
  
imports: import argparse
  from collections import OrderedDict
  from copy import deepcopy
  import logging
  import operator
  import random
  import numpy
  import torch
  import torch.nn
  import torch.backends.cudnn
  import yaml
  import inspect
label_desc: Use image node_id 3 for calling a global function with example usage: to_np(var) and returns: var