code: def decode_base64_dict(data):
      ''' Decode a base64 encoded array into a NumPy array.
  
      Args:
          data (dict) : encoded array data to decode
  
      Data should have the format encoded by :func:`encode_base64_dict`.
  
      Returns:
          np.ndarray
  
      '''
      b64 = base64.b64decode(data['__ndarray__'])
      array = np.copy(np.frombuffer(b64, dtype=data['dtype']))
      if len(data['shape']) > 1:
          array = array.reshape(data['shape'])
      return arraf decode_base64_dict(data):
      ''' Decode a base64 encoded array into a NumPy array.
  
      Args:
          data (dict) : encoded array data to decode
  
      Data should have the format encoded by :func:`encode_base64_dict`.
  
      Returns:
          np.ndarray
  
      '''
      b64 = base64.b64decode(data['__ndarray__'])
      array = np.copy(np.frombuffer(b64, dtype=data['dtype']))
      if len(data['shape']) > 1:
          array = array.reshape(data['shape'])
      return array
docs: Decode a base64 encoded array into a NumPy array.
  
      Args:
          data (dict) : encoded array data to decode
  
      Data should have the format encoded by :func:`encode_base64_dict`.
  
      Returns:
          np.ndarray