code: def test_concat_horizontal_duplicate_col(lazy: bool) -> None:
      a = pl.DataFrame({"a": ["a", "b"], "b": [1, 2]})
      b = pl.DataFrame(
          {"c": [5, 7, 8, 9], "d": [1, 2, 1, 2], "a": [1, 2, 1, 2]}
      )
  
      if lazy:
          dfs: list[pl.DataFrame] | list[pl.LazyFrame] = [
              a.lazy(),
              b.lazy(),
          ]
      else:
          dfs = [a, b]
  
      with pytest.raises(pl.DuplicateError):
          pl.concat(dfs, how="horizontal")
  
imports: from __future__ import annotations
  from datetime import timedelta
  from typing import TYPE_CHECKING
  import numpy
  import pytest
  import polars
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 6 for calling a global function with example usage: test_concat_horizontal_duplicate_col(lazy) without return types