code: def _platform_pylib_exts():  # nocover
      
      import sysconfig
      valid_exts = []
      if six.PY2:
          # see also 'SHLIB_EXT'
          base_ext = '.' + sysconfig.get_config_var('SO').split('.')[-1]
      else:
          # return with and without API flags
          # handle PEP 3149 -- ABI version tagged .so files
          base_ext = '.' + sysconfig.get_config_var('EXT_SUFFIX').split('.')[-1]
      for tag in _extension_module_tags():
          valid_exts.append('.' + tag + base_ext)
      valid_exts.append(base_ext)
      return tuple(valid_exts)
docs: Returns .so, .pyd, or .dylib depending on linux, win or mac.
      On python3 return the previous with and without abi (e.g.
      .cpython-35m-x86_64-linux-gnu) flags. On python2 returns with
      and without multiarch.