code: def parse_osspath(path: path_type):
      # Extract OSS configuration from the encoded URL.
      str_path = stringify_path(path)
      parse_result = oss2.urlparse(str_path)
      if parse_result.scheme != "oss":
          raise ValueError(
              f"Except scheme oss, but got scheme: {parse_result.scheme}"
              f" in path: {str_path}"
          )
      bucket = parse_result.hostname
      if not (parse_result.username and parse_result.password):
          raise RuntimeError(
              r"Please use build_oss_path to add OSS info"
          )
      param_dict = url_to_dict(parse_result.username)
      access_key_id = param_dict["access_key_id"]
      access_key_secret = parse_result.password
      end_point = param_dict["end_point"]
      key = parse_result.path
      key = key[1:] if key.startswith("/") else key
      return bucket, key, access_key_id, access_key_secret, end_point
  
imports: import base64
  import json
  import os
  from ..base import path_type, stringify_path
  from ....utils import lazy_import
label_desc: Use image node_id 1 for calling a global function with example usage: parse_osspath(path) and returns: bucket,  key,  access_key_id,  access_key_secret,  end_point