code: def setUpClass(self):
      status, output = commands.getstatusoutput(
          "aws s3api list-buckets"
      )
      self.has_s3 = status is 0
      self.standard_bucket = None
      self.regional_bucket = None
      # Use aws cli s3api to find a bucket with "gl-testdata" in the name, and use it as out test bucket.
      # Temp files will be read from /written to the test bucket's /tmp folder and be cleared on exist.
      if self.has_s3:
          try:
              json_output = json.loads(output)
              bucket_list = [b["Name"] for b in json_output["Buckets"]]
              assert "gl-testdata" in bucket_list
              assert "gl-testdata-oregon" in bucket_list
              self.standard_bucket = "gl-testdata"
              self.regional_bucket = "gl-testdata-oregon"
              self.tempfile = tempfile.NamedTemporaryFile().name
              (self.graph, self.sframe) = create_test_objects()
          except:
              logging.getLogger(__name__).warning(
                  "Fail parsing ioutput of s3api into json. Please check your awscli version."
              )
              self.has_s3 = False
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import sys
  import json
  import logging
  import os
  import fnmatch
  import tempfile
  import unittest
  import pandas
  from .._connect import main
  from ..None import _sys_util
  from ..None import util
  from ..None import SGraph, SFrame, load_sgraph, load_model, load_sframe
  from turicreate.toolkits._model import Model
  from pandas.util.testing import assert_frame_equal
label_desc: Use image node_id 1 for calling the S3ConnectorTests obj's underlying member method code with example usage: obj.setUpClass() without return types