code: def decode_path(path, fail_on_bucket_only=True):
      if not path.startswith("drive://"):
          raise ValueError(
              "Path is not a Drive path (path='%s')" % path
          )
      parts = path.split("/", maxsplit=3)
      if len(parts) != 4:
          if fail_on_bucket_only:
              raise ValueError(
                  "Path needs to include both bucket name and object key (path='%s')"
                  % path
              )
          else:
              return parts[2], None
      return parts[2], parts[3]
  
file_path: h2o-3/h2o-persist-drive/src/main/resources/drive_client.py
imports: import boto3
  import itertools
label_desc: Use image node_id 1 for calling a global function with example usage: decode_path(path, fail_on_bucket_only) and returns: parts,  parts, parts,  None