human
Solve the following python programming problem given the following code:
@pytest.fixture()
def load_file(filepath):
assistant
#Here is the Python program you requested.

    """Opens filename with encoding and return its contents.
    """
    def make_load_file(filename, encoding='utf-8'):
        with io.open(filepath(filename), encoding=encoding) as f:
            return f.read()
    return make_load_file