def METHOD_NAME(layout, **kwargs):
    if _is_maybe_optional_list_of_string(layout):
        if layout.backend is typetracer:
            return ak.from_arrow(
                pc.index_in(
                    ak.to_arrow(
                        layout.form.length_zero_array(highlevel=False),
                        extensionarray=False,
                    ),
                    ak.to_arrow(
                        value_set_layout.form.length_zero_array(highlevel=False),
                        extensionarray=False,
                    ),
                    skip_nulls=skip_nones,
                ),
                highlevel=False,
                generate_bitmasks=True,
            ).to_typetracer(forget_length=True)
        else:
            return ak.from_arrow(
                pc.index_in(
                    ak.to_arrow(layout, extensionarray=False),
                    ak.to_arrow(value_set_layout, extensionarray=False),
                    skip_nulls=skip_nones,
                ),
                highlevel=False,
                generate_bitmasks=True,
            )