def prepare(schema_uri: str, checks: Iterable[Callable]=DEFAULT_CHECKS, workers_num: int=1, api_options: Optional[Dict[(str, Any)]]=None, loader_options: Optional[Dict[(str, Any)]]=None, hypothesis_options: Optional[Dict[(str, Any)]]=None, loader: Callable=from_uri, seed: Optional[int]=None) -> Generator[(events.ExecutionEvent, None, None)]:
    'Prepare a generator that will run test cases against the given API definition.'
    api_options = (api_options or {})
    loader_options = (loader_options or {})
    if ('base_url' not in loader_options):
        loader_options['base_url'] = get_base_url(schema_uri)
    schema = loader(schema_uri, **loader_options)
    return execute_from_schema(schema, checks, hypothesis_options=hypothesis_options, seed=seed, workers_num=workers_num, **api_options)
Prepare a generator that will run test cases against the given API definition.
def prepare(schema_uri: str, checks: Iterable[Callable]=DEFAULT_CHECKS, workers_num: int=1, api_options: Optional[Dict[(str, Any)]]=None, loader_options: Optional[Dict[(str, Any)]]=None, hypothesis_options: Optional[Dict[(str, Any)]]=None, loader: Callable=from_uri, seed: Optional[int]=None) -> Generator[(events.ExecutionEvent, None, None)]:
    
    api_options = (api_options or {})
    loader_options = (loader_options or {})
    if ('base_url' not in loader_options):
        loader_options['base_url'] = get_base_url(schema_uri)
    schema = loader(schema_uri, **loader_options)
    return execute_from_schema(schema, checks, hypothesis_options=hypothesis_options, seed=seed, workers_num=workers_num, **api_options)