def _file_is_executable(exe_name):
  if os.path.isfile(exe_name) and os.access(exe_name, os.X_OK):
    if not sys.platform.startswith('win'):
      # This is sufficient for Linux and Mac OS X, but not for Windows.
      return True
    # More information about the PE File Structure and MS-DOS Header can be
    # found here: https://msdn.microsoft.com/en-us/magazine/cc301805.aspx
    # and here: https://msdn.microsoft.com/en-us/library/ms809762.aspx
    # TODO: Get rid of this when a better solution is found.
    try:
      with open(exe_name, 'rb') as f:
        s = f.read(2)
      return s == 'MZ'
    except OSError:
      pass
  return False
Return just the volume names
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/tools/devappserver2/go_managedvm.py/_file_is_executable--crossover with--dataset/ETHPy150Open realestate-com-au/harpoon/harpoon/option_spec/image_objs.py/Volumes.volume_names