def METHOD_NAME(self):
    """
    Reads the xml schema file
    """
    # The XML schema file (echo10_xml.xsd) imports another schema file (MetadataCommon.xsd)
    # Python cannot figure out the import if they are in a different location than the calling script
    # Thus we need to set an environment variable to let it know where the files are located
    # Path to catalog must be a url
    catalog_path = f"file:{pathname2url(str(SCHEMA_PATHS['catalog']))}"
    # Temporarily set the environment variable
    os.environ["XML_CATALOG_FILES"] = os.environ.get(
        "XML_CATALOG_FILES", catalog_path
    )
    with open(SCHEMA_PATHS[f"{self.metadata_format}_schema"]) as schema_file:
        file_content = schema_file.read().encode()
    xmlschema_doc = etree.parse(BytesIO(file_content))
    schema = etree.XMLSchema(xmlschema_doc)
    return schema