code: def decode(A: np.ndarray, scale: int):
      """
      A: (N, D, 2) 3D tensor
      scale: positive value
      """
      assert isinstance(A, np.ndarray)
      n_dims = len(A.shape)
      assert n_dims >= 1 and A.shape[-1] == 2
      assert scale > 0
      if isinstance(scale, float):
          print(
              "WARN: (tf_i128.decode) the scale should be an int, but got {}".format(
                  scale
              )
          )
      scale = int(scale)
  
      def _decode_i128(two):
          return (
              int(two[0].astype(np.uint64))
              + (int(two[1].astype(np.int64)) << 64)
          ) / scale
  
      return np.apply_along_axis(_decode_i128, n_dims - 1, A).astype(
          np.float64
      )
  
imports: import logging
  import os
  import numpy
  import tensorflow
  from tensorflow.python.framework.errors import NotFoundError
  import tf_encrypted
label_desc: Use image node_id 3 for calling a global function with example usage: decode(A, scale) and returns: np, unknown