code: def test_get_complex_nested(to_type):
      ser = Series([to_type([to_type([1, 2])])])
  
      result = ser.str.get(0)
      expected = Series([to_type([1, 2])])
      tm.assert_series_equal(result, expected)
  
      result = ser.str.get(1)
      expected = Series([np.nan])
      tm.assert_series_equal(result, expected)
  
imports: from datetime import datetime
  import re
  import numpy
  import pytest
  import pandas
  from pandas import DataFrame, Index, MultiIndex, Series, _testing
  from pandas.tests.strings import _convert_na_value, object_pyarrow_numpy
label_desc: Use image node_id 48 for calling a global function with example usage: test_get_complex_nested(to_type) without return types