code: def oss_isdir(path: path_type):
      """
      OSS has no concept of directories, but we define
      a ossurl is dir, When there is at least one object
      at the ossurl that is the prefix(end with char "/"),
      it is considered as a directory.
      """
      dirname = stringify_path(path)
      if not dirname.endswith("/"):
          dirname = dirname + "/"
      (
          bucket,
          key,
          access_key_id,
          access_key_secret,
          end_point,
      ) = parse_osspath(dirname)
      oss_bucket = _get_oss_bucket(
          bucket, access_key_id, access_key_secret, end_point
      )
      isdir = False
      for obj in oss2.ObjectIteratorV2(
          oss_bucket, prefix=key, max_keys=2
      ):
          if obj.key == key:
              continue
          isdir = True
          break
      return isdir
  
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 4 for calling a global function with example usage: oss_isdir(path) and returns: isdir