code: def beginActivityWithOptions(options, reason=""):
      """Wrapper for:
  
      [ [ NSProcessInfo processInfo]
          beginActivityWithOptions: (uint64)options
                            reason: (str)reason
      ]
      """
      NSProcessInfo = C("NSProcessInfo")
      NSString = C("NSString")
  
      objc.objc_msgSend.argtypes = [void_p, void_p, void_p]
      reason = msg(NSString, n("stringWithUTF8String:"), _utf8(reason))
      objc.objc_msgSend.argtypes = [void_p, void_p]
      info = msg(NSProcessInfo, n("processInfo"))
      objc.objc_msgSend.argtypes = [void_p, void_p, ull, void_p]
      activity = msg(
          info,
          n("beginActivityWithOptions:reason:"),
          ull(options),
          void_p(reason),
      )
      return activity
  
file_path: catboost/contrib/python/appnope/py3/appnope/_nope.py
imports: from contextlib import contextmanager
  import ctypes
  import ctypes.util
label_desc: Use image node_id 4 for calling a global function with example usage: beginActivityWithOptions(options, reason) and returns: activity