code: def isdir(self, path):
      path = _sanitize_s3(_stringify_path(path))
      try:
          contents = self.fs.ls(path)
          if len(contents) == 1 and contents[0] == path:
              return False
          else:
              return True
      except OSError:
          return False
  
imports: import os
  import posixpath
  import sys
  import urllib.parse
  import warnings
  from os.path import join
  import pyarrow
  from pyarrow.util import doc, _stringify_path, _is_path_like, _DEPR_MSG
label_desc: Use image node_id 1 for calling the S3FSWrapper obj's underlying member method code with example usage: obj.isdir(path) and returns: False, True, False