code: def pack_raw(raw):
      # pack Bayer image to 4 channels
      im = raw
      if not isinstance(raw, np.ndarray):
          im = raw.raw_image_visible.astype(np.float32)
      im = np.maximum(im - 512, 0) / (
          16383 - 512
      )  # subtract the black level
  
      im = np.expand_dims(im, axis=2)
      img_shape = im.shape
      H = img_shape[0]
      W = img_shape[1]
  
      out = np.concatenate(
          (
              im[0:H:2, 0:W:2, :],
              im[0:H:2, 1:W:2, :],
              im[1:H:2, 1:W:2, :],
              im[1:H:2, 0:W:2, :],
          ),
          axis=2,
      )
      return out
  
file_path: PaddleHub/modules/image/image_processing/seeinthedark/module.py
imports: import os
  import argparse
  import paddle
  import paddlehub
  from paddlehub.module.module import moduleinfo, runnable, serving
  import numpy
  import rawpy
  import cv2
  from .util import base64_to_cv2
label_desc: Use image node_id 1 for calling a global function with example usage: pack_raw(raw) and returns: out