code: def test_init_with_gpu_id(
      self, framework: str, model: str, dataset_text_classification: str
  ) -> None:
      trainer = ArgillaTrainer(
          name=dataset_text_classification,
          gpu_id=0,
          framework=framework,
          model=model,
      )
      try:
          import torch  # noqa
  
          has_torch = True
      except ImportError:
          has_torch = False
  
      try:
          import tensorflow  # noqa
  
          has_tensorflow = True
      except ImportError:
          has_tensorflow = False
  
      import spacy
  
      if not has_torch and not has_tensorflow:
          assert trainer._trainer.gpu_id == -1
      else:
          assert trainer._trainer.use_gpu == spacy.prefer_gpu(0)
  
file_path: argilla/tests/integration/training/test_spacy.py
imports: import argilla
  import pytest
  from argilla.training import ArgillaTrainer
  from tests.integration.training.helpers import cleanup_spacy_config, train_with_cleanup
label_desc: Use image node_id 5 for calling the TestSpaCyTrainer obj's underlying member method code with example usage: obj.test_init_with_gpu_id(framework, model, dataset_text_classification) without return types