original_docstring: 
      Get the name of the top-level directory in this path.
      
docstring: Get the name of the top-level directory in this path.
docstring_tokens: Get the name of the top - level directory in this path .
code: def tld(pathlike):
      """
      Get the name of the top-level directory in this path.
      """
      parts = PurePath(pathlike).parts
      return parts[0] if len(parts) > 1 else ''
code_tokens: def tld ( pathlike ) : parts = PurePath ( pathlike ) . parts return parts [ 0 ] if len ( parts ) > 1 else ''
short_docstring: Get the name of the top-level directory in this path.
short_docstring_tokens: Get the name of the top - level directory in this path .
comment: """
      Get the name of the top-level directory in this path.
      """