code: def _list_tickets(status=None):
      s3 = boto3.resource("s3")
      bucket = s3.Bucket(bucket_name)
      prefix = (
          "ci-integ-queue/{}/".format(status)
          if status
          else "ci-integ-queue/"
      )
      objects = [file for file in bucket.objects.filter(Prefix=prefix)]
      files = list(filter(lambda x: x != prefix, objects))
      sorted_files = list(sorted(files, key=lambda y: y.key))
      return sorted_files
  
file_path: sagemaker-python-sdk/ci-scripts/queue_build.py
imports: from __future__ import absolute_import
  import os
  import re
  import time
  import boto3
label_desc: Use image node_id 7 for calling a global function with example usage: _list_tickets(status) and returns: sorted_files