code: def test_name_inferred_from_pkg_level0_fails():
      pkg_path = (
          tfds.core.tfds_path()
          / "testing/dummy_config_based_datasets/dummy_ds_2"
      )
      expected_msg = (
          "When using `Builder` as class name, the dataset builder name is "
          'inferred from module name if named "*_dataset_builder" or from '
          'package name, but there is no package in "dummy_builder".'
      )
      with tfds.core.utils.add_sys_path(pkg_path):
          with pytest.raises(
              AssertionError, match=re.escape(expected_msg)
          ):
              tfds.core.community.builder_cls_from_module(
                  "dummy_builder"
              )
  
imports: import abc
  import re
  from unittest import mock
  import pytest
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import constants
  from tensorflow_datasets.core import load
  from tensorflow_datasets.core import registered
  from tensorflow_datasets.core import splits
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.utils import py_utils
  import tensorflow_datasets.public_api
  from tensorflow_datasets.testing.dummy_config_based_datasets.dummy_ds_1 import dummy_ds_1_dataset_builder
label_desc: Use image node_id 5 for calling a global function with example usage: test_name_inferred_from_pkg_level0_fails() without return types