def METHOD_NAME(schema_registry_client, version):
    # [START get_schema_by_version_sync]
    group_name = os.environ["SCHEMAREGISTRY_GROUP"]
    name = "your-schema-name"
    schema = schema_registry_client.get_schema(group_name=group_name, name=name, version=version)
    definition = schema.definition
    properties = schema.properties
    # [END get_schema_by_version_sync]
    print(definition)
    print(properties)
    return schema