docstr: Path can only contain a limited character set.
docstr_tok: ["Path","can","only","contain","a","limited","character","set","."]
code: def test_path_must_be_limited_character_set(self):
      """Path can only contain a limited character set."""
      with self.assertRaisesRegex(
          ValueError,
          'Invalid path for Sheets url, got "/abc/def/sheets.php',
      ):
          sanitize_sheets_url(
              "https://docs.google.com/abc/def/sheets.php"
          )
  
      # Valid path goes through.
      url = sanitize_sheets_url(
          "https://docs.google.com/abc/DEF/123/-_-"
      )
      self.assertEqual(
          "https://docs.google.com/abc/DEF/123/-_-", str(url)
      )
  
file_path: generative-ai-python/tests/notebook/test_sheets_sanitize_url.py
imports: from __future__ import annotations
  from absl.testing import absltest
  from google.generativeai.notebook import sheets_sanitize_url
label_desc: Use image node_id 4 for calling the SheetsSanitizeURLTest obj's underlying member method code with example usage: obj.test_path_must_be_limited_character_set() without return types