code: def get_backgrounds(self):
      # Download tar file, if not already downloaded
      # Get tar file path
      tarfile_path = _download_and_checksum_files(
          self.sarray_url_md5_pairs, _get_cache_dir("data")
      )[0]
  
      # Extract SArray from tar file, if not already extracted
      if _os.path.exists(self.destination_sarray_path):
          backgrounds_tar = _tarfile.open(tarfile_path)
          backgrounds_tar.extractall(_get_cache_dir("data"))
  
      # Verify and load the extracted SArray
      try:
          # Check we extracted the file we expected
          expected_extracted_files = set(
              self.extracted_file_to_md5.keys()
          )
          extracted_files = set(
              _os.listdir(self.destination_sarray_path)
          )
          assert expected_extracted_files == extracted_files
  
          # Check each of the files is what we expect
          for (
              filename,
              expected_md5,
          ) in self.extracted_file_to_md5.items():
              full_path = _os.path.join(
                  _get_cache_dir("data"), filename
              )
              md5 = hashlib.md5(full_path).hexdigest()
              assert md5 == expected_md5
  
          backgrounds = _tc.SArray(self.destination_sarray_path)
      except:
          # delete the incompletely/incorrectly extracted tarball bits on disk
          if _os.path.exists(self.destination_sarray_path):
              _shutil.rmtree(self.destination_sarray_path)
          # and re-extract
          backgrounds_tar = _tarfile.open(tarfile_path)
          backgrounds_tar.extractall(_get_cache_dir("data"))
          backgrounds = _tc.SArray(self.destination_sarray_path)
  
      return backgrounds
  
file_path: turicreate/src/python/turicreate/toolkits/_data_zoo.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import os
  import turicreate
  import shutil
  import tarfile
  from six.moves.urllib import parse
  from ._pre_trained_models import _download_and_checksum_files
  from ._pre_trained_models import _get_cache_dir
label_desc: Use image node_id 2 for calling the OneShotObjectDetectorBackgroundData obj's underlying member method code with example usage: obj.get_backgrounds() and returns: backgrounds