code: def test_get():
      model = (
          preprocessing.StandardScaler()
          | linear_model.LinearRegression()
      )
  
      assert isinstance(
          model["StandardScaler"], preprocessing.StandardScaler
      )
      assert isinstance(
          model["LinearRegression"], linear_model.LinearRegression
      )
      assert isinstance(model[0], preprocessing.StandardScaler)
      assert isinstance(model[1], linear_model.LinearRegression)
      assert isinstance(model[-1], linear_model.LinearRegression)
      assert isinstance(model[-2], preprocessing.StandardScaler)
  
file_path: river/river/compose/test_.py
imports: from __future__ import annotations
  import pandas
  from river import compose, linear_model, preprocessing
label_desc: Use image node_id 7 for calling a global function with example usage: test_get() without return types