code: def define_samples(sample_list: [Sample], table_mapper=None):
      ret = OrderedDict()
      i = 1
      for sample in sample_list:
          if table_mapper:
              sample.table_mapper = (
                  table_mapper  # override with global table_mapper
              )
          istr = str(i) if i > 10 else "0" + str(i)
          sampleId = sample.sample_id
          if not sampleId:
              sampleId = "TEST_" + istr
              i = i + 1
          ret[sampleId] = sample
      return ret
  
file_path: blazingsql/tests/BlazingSQLTest/EndToEndTests/oldScripts/tablesFromSQL.py
imports: from collections import OrderedDict
  from blazingsql import DataType
  from DataBase import createSchema
  from Configuration import ExecutionMode
  from Configuration import Settings
  from Runner import runTest
  from Utils import gpuMemory, skip_test
  from EndToEndTests.oldScripts import tpchQueries
label_desc: Use image node_id 1 for calling a global function with example usage: define_samples(sample_list, table_mapper) and returns: ret