<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_schema_from_xsd_directory(directory, version):
 """Create and fill the schema from a directory which contains xsd files. It calls fill_schema_from_xsd_file for each xsd file found. """

    schema = Schema(version)
    for f in _get_xsd_from_directory(directory):
        logger.info("Loading schema %s" % f)
        fill_schema_from_xsd_file(f, schema)
    return schema