class_docstr: A path-like object for object storage.
class_docstr_tok: ["A","path-like","object","for","object","storage","."]
code: def key(self) -> str:
      if self._url:
          # per convention, we strip the leading slashes to ensure a relative key is returned
          # we keep the trailing slash to allow for directory-like semantics
          return self._url.path.lstrip(self.sep)
      else:
          return ""
  
imports: from __future__ import annotations
  import contextlib
  import functools
  import os
  import shutil
  import typing
  from pathlib import PurePath
  from urllib.parse import urlsplit
  from fsspec.core import split_protocol
  from fsspec.utils import stringify_path
  from upath.implementations.cloud import CloudPath, _CloudAccessor
  from upath.registry import get_upath_class
  from airflow.io.store import attach
  from airflow.io.utils.stat import stat_result
label_desc: Use image node_id 7 for calling the ObjectStoragePath obj's underlying member method code with example usage: obj.key() and returns: self, str