code: def close_dead_experiments():
      in_process_experiments = Experiment.objects.filter(
          status=ExperimentStatus.IN_PROCESS
      )
  
      for exp in in_process_experiments:
          time_diff = (
              datetime.datetime.utcnow()
              - exp.last_heart_beat.replace(tzinfo=None)
          )
          time_diff = time_diff.total_seconds()
  
          if time_diff > 30.0:
              exp.status = ExperimentStatus.COMPLETED
              exp.experiment_end = timezone.now()
              exp.save()
  
imports: import datetime
  from django.utils import timezone
  from celery.decorators import periodic_task
  from celery.utils.log import get_task_logger
  from modelchimp.models.experiment import Experiment
  from modelchimp.enum import ExperimentStatus
label_desc: Use image node_id 1 for calling a global function with example usage: close_dead_experiments() without return types