def METHOD_NAME(name, primary_example, secondary_example):
    """Generate the Snowfakery output for some YAML
    Attempt to generate a two-part example, but fall back to single
    or nothing if worse comes to worst."""
    output = None
    exception = None
    for yaml_data in [primary_example, secondary_example]:
        with StringIO() as s:
            try:
                generate_data(StringIO(yaml_data), output_file=s, output_format="txt")
                output = s.getvalue()
                exception = None
            except Exception as e:
                exception = e
    if exception and name.lower() not in IGNORE_ERRORS:
        print(f"Cannot generate sample for {name}: {str(exception)[0:80]}")
        IGNORE_ERRORS.add(name.lower())
    if output:
        return yaml_data, output