code: def test_attributes():
      df = cudf.DataFrame({"x": [1, 2, 3], "y": [4, 5, 6]})
      sdf = DataFrame(example=df)
  
      assert getattr(sdf, "x", -1) != -1
      assert getattr(sdf, "z", -1) == -1
  
      sdf.x
      with pytest.raises(AttributeError):
          sdf.z
  
imports: import json
  import operator
  import numpy
  import pandas
  import pytest
  from dask.dataframe.utils import assert_eq
  from distributed import Client
  from streamz import Stream
  from streamz.dask import DaskStream
  from streamz.dataframe import Aggregation, DataFrame, DataFrames, Series
label_desc: Use image node_id 5 for calling a global function with example usage: test_attributes() without return types