code: def to_snake_case(camel_case: str) -> str:
      return re.sub(r"(?<!^)(?=[A-Z])", "_", camel_case).lower()
  
file_path: determined/e2e_tests/tests/cluster/test_logging.py
imports: import functools
  import re
  import sys
  import threading
  from typing import Any, Callable, Dict, Iterable, Optional, Union
  import pytest
  from determined.common import api
  from determined.common.api import authentication, bindings, certs
  from tests import config
  from tests import experiment
label_desc: Use image node_id 4 for calling a global function with example usage: to_snake_case(camel_case) and returns: re