code: def managed_context_entry(process_name,
                            classname,
                            token,
                            time_qualifier,
                            trigger_frequency='every 60',
                            state_machine_name=STATE_MACHINE_DISCRETE,
                            is_on=True,
                            exchange=EXCHANGE_MANAGED_WORKER,
                            blocking_type=BLOCKING_NORMAL,
                            present_on_boxes=None,
                            time_grouping=1,
                            arguments=None,
                            queue=None,
                            routing=None,
                            source=None,
                            sink=None,
                            pid_file=None,
                            log_file=None):
      
      _ROUTING_PREFIX = 'routing_'
      _QUEUE_PREFIX = 'queue_'
  
      if arguments is not None:
          assert isinstance(arguments, dict)
  
      process_entry = ManagedProcessEntry(
          process_name=process_name,
          trigger_frequency=trigger_frequency,
          state_machine_name=state_machine_name,
          is_on=is_on,
          blocking_type=blocking_type,
          classname=classname,
          token=token,
          source=source,
          sink=sink,
          mq_queue=queue if queue is not None else _QUEUE_PREFIX + token + time_qualifier,
          mq_routing_key=routing if routing is not None else _ROUTING_PREFIX + token + time_qualifier,
          mq_exchange=exchange,
          present_on_boxes=present_on_boxes,
          arguments=arguments if arguments is not None else dict(),
          time_qualifier=time_qualifier,
          time_grouping=time_grouping,
          log_filename=log_file if log_file is not None else token + time_qualifier + '.log',
          pid_filename=pid_file if pid_file is not None else token + time_qualifier + '.pid')
      return process_entry
docs: forms process context entry