code: def test_parse_invalid_function(func: str) -> None:
      # functions we don't (yet?) offer suggestions for
      parser = BytecodeParser(eval(func), map_target="expr")
      assert (
          not parser.can_attempt_rewrite()
          or not parser.to_expression("x")
      )
  
file_path: polars/py-polars/tests/unit/operations/map/test_inefficient_map_warning.py
imports: from __future__ import annotations
  import datetime
  import json
  import re
  from datetime import datetime
  from typing import Any, Callable
  import numpy
  import numpy
  import pytest
  import polars
  from polars.exceptions import PolarsInefficientMapWarning
  from polars.testing import assert_frame_equal, assert_series_equal
  from polars.utils.udfs import _NUMPY_FUNCTIONS, BytecodeParser
  from polars.utils.various import in_terminal_that_supports_colour
label_desc: Use image node_id 1 for calling a global function with example usage: test_parse_invalid_function(func) without return types