class_docstr: Platform directories for the macOS operating system. Follows the guidance from `Apple documentation
  <https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/MacOSXDirectories/MacOSXDirectories.html>`_.
  Makes use of the `appname <platformdirs.api.PlatformDirsABC.appname>`,
  `version <platformdirs.api.PlatformDirsABC.version>`,
  `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
class_docstr_tok: ["Platform","directories","for","the","macOS","operating","system",".","Follows","the","guidance","from","`","Apple","documentation","<","https",":","\/\/developer.apple.com\/library\/archive\/documentation\/FileManagement\/Conceptual\/FileSystemProgrammingGuide\/MacOSXDirectories\/MacOSXDirectories.html",">","`","_",".","Makes","use","of","the","`","appname","<","platformdirs.api.PlatformDirsABC.appname",">","`",",","`","version","<","platformdirs.api.PlatformDirsABC.version",">","`",",","`","ensure_exists","<","platformdirs.api.PlatformDirsABC.ensure_exists",">","`","."]
docstr: :return: cache directory shared by users, e.g. ``/Library/Caches/$appname/$version``.
    If we're using a Python binary managed by `Homebrew <https://brew.sh>`_, the directory
    will be under the Homebrew prefix, e.g. ``/opt/homebrew/var/cache/$appname/$version``.
    If `multipath <platformdirs.api.PlatformDirsABC.multipath>` is enabled and we're in Homebrew,
    the response is a multi-path string separated by ":", e.g.
    ``/opt/homebrew/var/cache/$appname/$version:/Library/Caches/$appname/$version``
docstr_tok: [":","return",":","cache","directory","shared","by","users",",","e.g",".","``","\/Library\/Caches\/","$","appname\/","$","version","``",".","If","we","'re","using","a","Python","binary","managed","by","`","Homebrew","<","https",":","\/\/brew.sh",">","`","_",",","the","directory","will","be","under","the","Homebrew","prefix",",","e.g",".","``","\/opt\/homebrew\/var\/cache\/","$","appname\/","$","version","``",".","If","`","multipath","<","platformdirs.api.PlatformDirsABC.multipath",">","`","is","enabled","and","we","'re","in","Homebrew",",","the","response","is","a","multi-path","string","separated","by","``",":","''",",","e.g",".","``","\/opt\/homebrew\/var\/cache\/","$","appname\/","$","version",":","\/Library\/Caches\/","$","appname\/","$","version","``"]
code: def site_cache_dir(self) -> str:
      """
      :return: cache directory shared by users, e.g. ``/Library/Caches/$appname/$version``.
        If we're using a Python binary managed by `Homebrew <https://brew.sh>`_, the directory
        will be under the Homebrew prefix, e.g. ``/opt/homebrew/var/cache/$appname/$version``.
        If `multipath <platformdirs.api.PlatformDirsABC.multipath>` is enabled and we're in Homebrew,
        the response is a multi-path string separated by ":", e.g.
        ``/opt/homebrew/var/cache/$appname/$version:/Library/Caches/$appname/$version``
      """
      is_homebrew = sys.prefix.startswith("/opt/homebrew")
      path_list = (
          [self._append_app_name_and_version("/opt/homebrew/var/cache")]
          if is_homebrew
          else []
      )
      path_list.append(
          self._append_app_name_and_version("/Library/Caches")
      )
      if self.multipath:
          return os.pathsep.join(path_list)
      return path_list[0]
  
imports: from __future__ import annotations
  import os.path
  import sys
  from .api import PlatformDirsABC
label_desc: Use image node_id 6 for calling the MacOS obj's underlying member method code with example usage: obj.site_cache_dir() and returns: path_list, os