code: def _os_dispatch(func, *args, **kwargs):
      '''
      Internal, dispatches functions by operating system
      '''
      if __grains__['kernel'] in SUPPORTED_BSD_LIKE:
          kernel = 'bsd'
      else:
          kernel = __grains__['kernel'].lower()
  
      _os_func = getattr(sys.modules[__name__], '_{0}_{1}'.format(kernel, func))
  
      if callable(_os_func):
          return _os_func(*args, **kwargsf _os_dispatch(func, *args, **kwargs):
      '''
      Internal, dispatches functions by operating system
      '''
      if __grains__['kernel'] in SUPPORTED_BSD_LIKE:
          kernel = 'bsd'
      else:
          kernel = __grains__['kernel'].lower()
  
      _os_func = getattr(sys.modules[__name__], '_{0}_{1}'.format(kernel, func))
  
      if callable(_os_func):
          return _os_func(*args, **kwargs)
docs: Internal, dispatches functions by operating system