code: def _imdenormalize(img, mean, std, to_bgr=True):
      import numpy as np
  
      mean = mean.reshape(1, -1).astype(np.float64)
      std = std.reshape(1, -1).astype(np.float64)
      img = (img * std) + mean
      if to_bgr:
          img = img[::-1]
      return img
  
imports: import copy
  from functools import partial
  import math
  import warnings
  import torch
  import torch.nn
  from .ops import resize
label_desc: Use image node_id 1 for calling a global function with example usage: _imdenormalize(img, mean, std, to_bgr) and returns: img