code: def parse_s3_url(url):
      
      bucket = ''
      path = ''
      if url:
          result = urlparse(url)
          bucket = result.netloc
          path = result.path.strip('/')
      return bucket, path
docs: Parses S3 URL.
  
      Returns bucket (domain) and file (full path).