code: def set_backend(name, gpu_id):
      global CONFIG
      if name == "generic":
          set_current_ops(Ops())
      else:
          if gpu_id == -1:
              set_current_ops(NumpyOps(use_blis=True))
          else:
              set_current_ops(CupyOps())
          if name == "pytorch":
              import torch
  
              torch.set_num_threads(1)
              CONFIG = CONFIG.replace("LSTM.v1", "PyTorchLSTM.v1")
  
file_path: thinc/examples/benchmarks/lstm_tagger.py
imports: from typing import List
  import typer
  import tqdm
  import numpy.random
  from timeit import default_timer
  from thinc.api import Model, Config, registry
  from thinc.api import chain, list2padded, with_array, with_padded
  from thinc.api import to_categorical, set_current_ops
  from thinc.api import Ops, NumpyOps, CupyOps, fix_random_seed, require_gpu
  from thinc.types import Ints1d, Ints2d, Floats2d, Padded
label_desc: Use image node_id 5 for calling a global function with example usage: set_backend(name, gpu_id) without return types