code: def oss_stat(path: path_type):
      path = stringify_path(path)
      (
          bucket,
          key,
          access_key_id,
          access_key_secret,
          end_point,
      ) = parse_osspath(path)
      oss_bucket = _get_oss_bucket(
          bucket, access_key_id, access_key_secret, end_point
      )
      if oss_isdir(path):
          stat = dict(name=path, size=0, modified_time=-1)
          stat["type"] = "directory"
      else:
          meta = oss_bucket.get_object_meta(key)
          stat = dict(
              name=path,
              size=int(meta.headers["Content-Length"]),
              modified_time=meta.headers["Last-Modified"],
          )
          stat["type"] = "file"
      return stat
  
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 5 for calling a global function with example usage: oss_stat(path) and returns: stat