code: def test_extract_script_args():
      # Basic cases. If there are NO script args, or if the default is present,
      # they're passed back out.
      assert c.extract_script_args({}) is None
      assert c.extract_script_args({"script_args": None}) is None
      assert c.extract_script_args({"script_args": []}) == []
  
      args = ["--carrot", "stick"]
  
      # If a '--' is passed in at the head it's stripped off and ignored.
      assert (
          c.extract_script_args({"script_args": ["--"] + args}) == args
      )
      assert c.extract_script_args({"script_args": args}) == args
  
file_path: caliban/tests/caliban/config/test_config.py
imports: import json
  import os
  from argparse import ArgumentTypeError
  import hypothesis.strategies
  from hypothesis import given
  import caliban.config
  import caliban.platform.cloud.types
  import caliban.util.schema
  import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: test_extract_script_args() without return types