text: # uncompyle6 version 3.2.4
  # Python bytecode 2.7 (62211)
  # Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)]
  # Embedded file name: ctypes.macholib.dylib
  import re
  __all__ = [
   'dylib_info']
  DYLIB_RE = re.compile('(?x)\n(?P<location>^.*)(?:^|/)\n(?P<name>\n    (?P<shortname>\\w+?)\n    (?:\\.(?P<version>[^._]+))?\n    (?:_(?P<suffix>[^._]+))?\n    \\.dylib$\n)\n')
  
  def dylib_info(filename):
      is_dylib = DYLIB_RE.match(filename)
      if not is_dylib:
          return None
      return is_dylib.groupdict()
  
  
  def test_dylib_info():
  
      def d(location=None, name=None, shortname=None, version=None, suffix=None):
          return dict(location=location, name=name, shortname=shortname, version=version, suffix=suffix)
  
      return
  
  
  if __name__ == '__main__':
      test_dylib_info()