code: def test_script_args_to_labels():
      """unit tests of our script_args_to_labels function behavior."""
  
      # Args like --!!! that parse keys to the empty string should not make it
      # through.
      assert_script_args_to_labels(
          "--lr 1 --!!! 2 --face 3", {"lr": "1", "face": "3"}
      )
  
      # Duplicates get overwritten.
      assert_script_args_to_labels("--lr 1 --lr 2", {"lr": "2"})
  
      assert_script_args_to_labels(
          "--LR 1 --item-label --fa!!ce cake --a",
          {
              "lr": "1",
              "item-label": "",
              "face": "cake",
              "a": "",
          },
      )
  
      # Multiple values are dropped for now, for the purpose of creating labels.
      assert_script_args_to_labels(
          "--lr 1 2 3 --item_underscoRE!! --face cake --a",
          {
              "lr": "1",
              "item_underscore": "",
              "face": "cake",
              "a": "",
          },
      )
  
      assert_script_args_to_labels("--face", {"face": ""})
  
      # single arguments get ignore if they're not boolean flags.
      assert_script_args_to_labels("face", {})
  
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 8 for calling a global function with example usage: test_script_args_to_labels() without return types