code: def _decode(image_data):
      """
      Internal helper function for decoding a single Image or an SArray of Images
      """
      from ...data_structures.sarray import SArray as _SArray
      from ... import extensions as _extensions
  
      if type(image_data) is _SArray:
          return _extensions.decode_image_sarray(image_data)
      elif type(image_data) is _Image:
          return _extensions.decode_image(image_data)
  
file_path: turicreate/src/python/turicreate/toolkits/image_analysis/image_analysis.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import turicreate
  import turicreate.toolkits._internal_utils
  from turicreate.toolkits._main import ToolkitError
  import turicreate.toolkits._internal_utils
  from .._internal_utils import _mac_ver
  from ..None import _pre_trained_models
  from ...data_structures.image import Image
  from ..None import _image_feature_extractor
label_desc: Use image node_id 2 for calling a global function with example usage: _decode(image_data) and returns: _extensions, _extensions