code: def test_from_different_chunks() -> None:
      s0 = pl.Series("a", [1, 2, 3, 4, None])
      s1 = pl.Series("b", [1, 2])
      s11 = pl.Series("b", [1, 2, 3])
      s1.append(s11)
  
      # check we don't panic
      df = pl.DataFrame([s0, s1])
      df.to_arrow()
      df = pl.DataFrame([s0, s1])
      out = df.to_pandas()
      assert list(out.columns) == ["a", "b"]
      assert out.shape == (5, 2)
  
file_path: polars/py-polars/tests/unit/io/test_other.py
imports: from __future__ import annotations
  import copy
  import sys
  from pathlib import Path
  from typing import Any, Callable, cast
  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_from_different_chunks() without return types