def is_test_stack_frame(frame):
  # The path of the executing file is in frame[1]
  path = frame[1]
  # See if the path is in the unittest module
  return "unittest" in path
dataset/ETHPy150Open scottrice/Ice/ice/logs.py/is_test_stack_frame/original