code: def test_local_train_sparse_tensor(setup):
      dtrain = MarsDMatrix(X_sparse, y)
      booster = train({}, dtrain, num_boost_round=2)
      assert isinstance(booster, Booster)
  
file_path: mars/mars/learn/contrib/xgboost/tests/test_train.py
imports: import numpy
  import pytest
  from .....None import tensor
  from .....None import dataframe
  from .....tests.core import require_ray
  from ..None import train, MarsDMatrix
label_desc: Use image node_id 2 for calling a global function with example usage: test_local_train_sparse_tensor(setup) without return types