code: def split_s3_path(url):
      """Split a full s3 path into the bucket name and path."""
      parsed = urlparse(url)
      if not parsed.netloc or not parsed.path:
          raise ValueError("bad s3 path {}".format(url))
      bucket_name = parsed.netloc
      s3_path = parsed.path
      # Remove '/' at beginning of path.
      if s3_path.startswith("/"):
          s3_path = s3_path[1:]
      return bucket_name, s3_path
  
imports: import fnmatch
  import json
  import logging
  import os
  import shutil
  import tarfile
  import tempfile
  from functools import partial, wraps
  from hashlib import sha256
  from io import open
label_desc: Use image node_id 6 for calling a global function with example usage: split_s3_path(url) and returns: bucket_name,  s3_path