code: def get_test_tensor(max_value=10, float=False):
      """Create simple test tensor."""
      tensor = torch.tensor(list(range(max_value)), dtype=torch.long)
      if float:
          tensor = tensor.float()
      return tensor
  
file_path: CrypTen/test/test_common.py
imports: import sys
  import unittest
  import crypten
  import torch
  from crypten.common.util import chebyshev_series
  from crypten.config import cfg
  from crypten.encoder import FixedPointEncoder, nearest_integer_division
label_desc: Use image node_id 1 for calling a global function with example usage: get_test_tensor(max_value, float) and returns: tensor