def _MakePath(self, path):
    """Create a directory path if needed.

    Args:
      path: (str) A path to a directory where files will be written.  The
        directory will be created if it does not exist.
    Raises:
      ValueError: If the directory exists, but is not writable.
      OSError: If the directory does not exist and cannot be created.
    """
    if not os.access(path, os.W_OK):
      if os.access(path, os.F_OK):
        raise ValueError(path % '%s exists, but is not writable')
      os.makedirs(path, 0755)
dataset/ETHPy150Open google/apis-client-generator/src/googleapis/codegen/filesys/filesystem_library_package.py/FilesystemLibraryPackage._MakePath/swapped operands of `%`