code: def decode_ndarray(bs):
      return np.load(BytesIO(bs))["arr"]
  
imports: from collections import namedtuple
  from io import BytesIO
  import numpy
  from itertools import chain, islice
  from enum import Enum
  import json
  from bigdl.dllib.utils.log4Error import *
  from typing import Any, Dict, Iterator, List, Union, TYPE_CHECKING
label_desc: Use image node_id 5 for calling a global function with example usage: decode_ndarray(bs) and returns: np