code: def test_sanitize_labels(pairs):
      """Test that any input we could possibly be provided, as long as it parses into
      kv pairs, will only make it into a dict of labels if it's properly
      sanitized.
  
      Checks that the functions works for dicts OR for lists of pairs.
  
      """
      for k, v in u.sanitize_labels(pairs).items():
          assert_valid_key_label(k)
          assert_valid_label(v)
  
file_path: caliban/tests/caliban/platform/cloud/test_util.py
imports: import re
  import hypothesis.strategies
  from hypothesis import given
  import caliban.platform.cloud.util
label_desc: Use image node_id 10 for calling a global function with example usage: test_sanitize_labels(pairs) without return types