code: def details(cls):
      inst = cls("msg", "stmt", (), "orig")
      inst.add_detail("d1")
      inst.add_detail("d2")
      return inst
  
imports: from itertools import product
  import pickle
  from sqlalchemy import exc
  from sqlalchemy.engine import default
  from sqlalchemy.testing import combinations_list
  from sqlalchemy.testing import eq_
  from sqlalchemy.testing import fixtures
label_desc: Use image node_id 1 for calling a global function with example usage: details(cls) and returns: inst