code: def parse_s3_url(url):
      """Returns an (s3 bucket, key name/prefix) tuple from a url with an s3 scheme.
  
      Args:
          url (str):
  
      Returns:
          tuple: A tuple containing:
  
              - str: S3 bucket name
              - str: S3 key
      """
      parsed_url = urlparse(url)
      if parsed_url.scheme != "s3":
          raise ValueError(
              "Expecting 's3' scheme, got: {} in {}.".format(
                  parsed_url.scheme, url
              )
          )
      return parsed_url.netloc, parsed_url.path.lstrip("/")
  
imports: from __future__ import print_function, absolute_import
  import logging
  from functools import reduce
  from typing import Optional
  from six.moves.urllib.parse import urlparse
label_desc: Use image node_id 1 for calling a global function with example usage: parse_s3_url(url) and returns: parsed_url,  parsed_url