code: def test_nested_struct_extract_host_scalars(data, idx, expected):
      series = cudf.Series(data)
  
      assert _nested_na_replace(series[idx]) == _nested_na_replace(
          expected
      )
  
imports: import numpy
  import pandas
  import pyarrow
  import pytest
  import cudf
  from cudf.core.dtypes import StructDtype
  from cudf.testing._utils import DATETIME_TYPES, TIMEDELTA_TYPES, assert_eq
label_desc: Use image node_id 21 for calling a global function with example usage: test_nested_struct_extract_host_scalars(data, idx, expected) without return types