def METHOD_NAME(name, kwds, kw_example, locale):
    """Generate Snowfakery yaml input and output"""
    if kwds:
        inline_example = f"fake.{name}({kw_example})"
        block_example = {f"fake.{name}": kwds}
    else:
        inline_example = f"fake.{name}"
        block_example = {"fake": name}
    inline_example = "${{" + inline_example + "}}"
    if ":" in inline_example:
        inline_example = f'"{inline_example}"'
    single_part_example = f"""
    - object: SomeObject
      fields:
        formula_field_example: {inline_example}"""
    if locale:
        locale_decl = f"""
    - var: snowfakery_locale
      value: {locale}
    """
        single_part_example = locale_decl + single_part_example
    try:
        two_part_example = (
            single_part_example
            + f"""
        block_field_example: {block_example}"""
        )
        two_part_example = reformat_yaml(two_part_example)
        single_part_example = reformat_yaml(single_part_example)
    except Exception as e:
        print("CANNOT PARSE")
        print(two_part_example, single_part_example)
        print(str(e)[0:100])
        raise
    return snowfakery_output_for(name, two_part_example, single_part_example)