def read(file, mode='r', **kwargs):
    """Read and return content of the file.

    Args:
        file: Path-like object giving the pathname of the file to be opened.
        mode: String giving the mode of the file to be opened. Default: 'r'.
        **kwargs: Optional arguments that ``open`` takes.

    Returns:
        File content.

    """
    with open(file, mode, **kwargs) as f:
        return f.read()
