code: def get_value(repo_directory, key, expect_type=None):
      
      config = read_config(repo_directory)
      value = config.get(key)
      if expect_type and value is not None and not isinstance(value, expect_type):
          raise ConfigSchemaError('Expected config variable %s to be type %s, got %s'
              % (repr(key), repr(expect_type), repr(type(value))))
      return value
docs: Gets the value of the specified key in the config file.