code: def test_literal_free_vars():
      "Give better error messages in response to code written by ChatGPT"
      array = hl.literal([1, 2, 3])
      with pytest.raises(
          ValueError,
          match="expressions that depend on other expressions",
      ):
          array.map(hl.literal)
  
file_path: hail/hail/python/test/hail/expr/test_functions.py
imports: import hail
  import scipy.stats
  import pytest
  from ..helpers import resource
label_desc: Use image node_id 7 for calling a global function with example usage: test_literal_free_vars() without return types