code: def get_test_attr_regex_filters(filters_str: str) -> Dict[str, str]:
      if not filters_str:
          return {}
  
      test_attr_regex_filters = {}
      for line in filters_str.splitlines():
          line = line.strip()
          if not line:
              continue
          parts = line.split(":", maxsplit=1)
          if len(parts) != 2:
              raise ReleaseTestConfigError(
                  f"Invalid test attr regex filter: {line}. "
                  "Should be of the form attr:regex"
              )
          test_attr_regex_filters[parts[0]] = parts[1]
      return test_attr_regex_filters
  
file_path: ray/release/ray_release/buildkite/settings.py
imports: import enum
  import os
  import subprocess
  from typing import Optional, Dict, Tuple
  from ray_release.exception import ReleaseTestConfigError
  from ray_release.logger import logger
  from ray_release.wheels import DEFAULT_BRANCH, get_buildkite_repo_branch
label_desc: Use image node_id 3 for calling a global function with example usage: get_test_attr_regex_filters(filters_str) and returns: test_attr_regex_filters, dict