human
Complete this python program:
def create_load(config=None):
assistant
#Here is the Python program you requested.

    """Mock out the function of the build load function
    This will create a ProjectConfig list of BuildConfig objects and validate
    them. The default load function iterates over files and builds up a list of
    objects. Instead of mocking all of this, just mock the end result.
    """
    if (config is None):
        config = {}
    def inner(path=None, env_config=None):
        env_config_defaults = {'output_base': '', 'name': '1', 'type': 'sphinx'}
        if (env_config is not None):
            env_config_defaults.update(env_config)
        yaml_config = ProjectConfig([BuildConfig(env_config_defaults, config, source_file='readthedocs.yml', source_position=0)])
        yaml_config.validate()
        return yaml_config
    return inner