parameters: ()
docstring: Returns a platform-appropriate available RAM metric in MiB.
docstring_summary: Returns a platform-appropriate available RAM metric in MiB.
docstring_tokens: Returns a platform - appropriate available RAM metric in MiB .
function: def get_available_ram() -> int:
      """
      Returns a platform-appropriate available RAM metric in MiB.
      """
      if sys.platform == "linux":
          return _get_available_ram_linux()
      elif sys.platform == "darwin":
          return _get_available_ram_macos()
      elif sys.platform == "win32":
          return _get_available_ram_windows()
      elif sys.platform.startswith("freebsd"):
          return _get_available_ram_freebsd()
      else:
          raise NotImplementedError(
              f"platform {sys.platform} does not have an implementation of get_available_ram"
          )
function_tokens: def get_available_ram ( ) -> int : if sys . platform == "linux" : return _get_available_ram_linux ( ) elif sys . platform == "darwin" : return _get_available_ram_macos ( ) elif sys . platform == "win32" : return _get_available_ram_windows ( ) elif sys . platform . startswith ( "freebsd" ) : return _get_available_ram_freebsd ( ) else : raise NotImplementedError ( f"platform {sys.platform} does not have an implementation of get_available_ram" )