code: def _long_tensor(tok_lst):
      return torch.tensor(
          tok_lst,
          dtype=torch.long,
          device=torch_device,
      )
  
imports: import unittest
  from transformers import MobileBertConfig, is_torch_available
  from transformers.models.auto import get_values
  from transformers.testing_utils import require_sentencepiece, require_tokenizers, require_torch, slow, torch_device
  from ...test_configuration_common import ConfigTester
  from ...test_modeling_common import ModelTesterMixin, ids_tensor, random_attention_mask
  from ...test_pipeline_mixin import PipelineTesterMixin
label_desc: Use image node_id 1 for calling a global function with example usage: _long_tensor(tok_lst) and returns: torch