code: def test_apply_fn_different_ancestor():
      add_two = functools.partial(add_number, increment=2)
      with pytest.raises(
          ValueError,
          match="The out-feature must have the same ancestor",
      ):
          transform_lib.apply_fn(
              fn=add_two, input_feature="a/b", output_feature="c/d"
          )
  
file_path: datasets/tensorflow_datasets/core/transform/transform_lib_test.py
imports: import functools
  from typing import Iterator
  import pytest
  from tensorflow_datasets.core.transform import transform_lib
label_desc: Use image node_id 8 for calling a global function with example usage: test_apply_fn_different_ancestor() without return types