def METHOD_NAME(examples_file: Optional[str], insecure=False):
    """Generate the example dict via an XSOAR server and return dict results.
    Args:
        examples_file: yaml as python dict.
        insecure: wether to run the examples without checking ssl.
    """
    command_examples = get_command_examples(examples_file, None)
    example_dict, build_errors = build_example_dict(command_examples, insecure)
    if build_errors:
        raise Exception(f"Command examples had errors: {build_errors}")
    return example_dict