code: def test_na_trailing_columns(all_parsers):
      parser = all_parsers
      data = """Date,Currency,Symbol,Type,Units,UnitPrice,Cost,Tax
  2012-03-14,USD,AAPL,BUY,1000
  2012-05-12,USD,SBUX,SELL,500"""
  
      # Trailing columns should be all NaN.
      result = parser.read_csv(StringIO(data))
      expected = DataFrame(
          [
              [
                  "2012-03-14",
                  "USD",
                  "AAPL",
                  "BUY",
                  1000,
                  np.nan,
                  np.nan,
                  np.nan,
              ],
              [
                  "2012-05-12",
                  "USD",
                  "SBUX",
                  "SELL",
                  500,
                  np.nan,
                  np.nan,
                  np.nan,
              ],
          ],
          columns=[
              "Date",
              "Currency",
              "Symbol",
              "Type",
              "Units",
              "UnitPrice",
              "Cost",
              "Tax",
          ],
      )
      tm.assert_frame_equal(result, expected)
  
imports: from io import StringIO
  import numpy
  import pytest
  from pandas._libs.parsers import STR_NA_VALUES
  from pandas import DataFrame, Index, MultiIndex
  import pandas._testing
label_desc: Use image node_id 15 for calling a global function with example usage: test_na_trailing_columns(all_parsers) without return types