code: def truncate_table(table_name):
      if lore.io.metadata.adapter == "postgres":
          lore.io.metadata.execute(
              "TRUNCATE {} RESTART IDENTITY CASCADE".format(table_name)
          )
      else:
          lore.io.metadata.execute("DELETE FROM {}".format(table_name))
  
file_path: lore/tests/unit/test_metadata.py
imports: import unittest
  import tests.mocks.models_other
  import lore.metadata
  import datetime
label_desc: Use image node_id 1 for calling a global function with example usage: truncate_table(table_name) without return types