code: def test_split():
      sd = StructuredDataset(
          df=df,
          label_names=["label"],
          protected_attribute_names=["two"],
      )
      train, test = sd.split([0.5])
      train2, test2 = sd.split(2)
  
      assert train == train2
      assert test == test2
      assert np.all(
          np.concatenate((train.features, test.features)) == sd.features
      )
  
imports: import numpy
  import pandas
  from aif360.datasets import StructuredDataset
label_desc: Use image node_id 2 for calling a global function with example usage: test_split() without return types