code: def test_new_invalid_name():
      # Dataset name is required argument
      error_message = "Invalid dataset name. It should be a valid Python class name."
      invalid_names = ["foo-15", "15foo"]
      for invalid_name in invalid_names:
          with pytest.raises(ValueError) as execution_info:
              _run_cli("new " + invalid_name)
          assert execution_info.value.args[0] == error_message
  
file_path: datasets/tensorflow_datasets/scripts/cli/new_test.py
imports: import pathlib
  import pytest
  from tensorflow_datasets.scripts.cli import main
  from tensorflow_datasets.scripts.cli import new
label_desc: Use image node_id 3 for calling a global function with example usage: test_new_invalid_name() without return types