code: def test_tags_to_regex():
      assert (
          path_parse.tags_to_regex(
              "/path/to/experiments/{model}/{task}"
          )
          == "/path/to/experiments/(?P<model>\\w+)/(?P<task>\\w+)"
      )
  
      assert (
          path_parse.tags_to_regex(
              "/path/to/experiments/{model}/{task}",
              default_format="(\\w|_)+",
          )
          == "/path/to/experiments/(?P<model>(\\w|_)+)/(?P<task>(\\w|_)+)"
      )
  
      assert (
          path_parse.tags_to_regex(
              "/path/to/experiments/{model}/{task}",
              format_dict={"task": "(\\w|_)+"},
          )
          == "/path/to/experiments/(?P<model>\\w+)/(?P<task>(\\w|_)+)"
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_tags_to_regex() without return types