code: def control(self, control_func, args=None, kwargs=None, name='Control', context=None):
          '''
          Set the experiment's control function. Must be set before ``conduct()`` is called.
  
          :param callable control_func: your control function
          :param iterable args: positional arguments to pass to your function
          :param dict kwargs: keyword arguments to pass to your function
          :param string name: a name for your observation
          :param dict context: observation-specific context
  
          :raises LaboratoryException: If attempting to set a second control case
          '''
          if self._control is not None:
              raise exceptions.LaboratoryException(
                  'You have already established a control case'
              )
  
          self._control = {
              'func': control_func,
              'args': args or [],
              'kwargs': kwargs or {},
              'name': name,
              'context': context or {},
          f control(self, control_func, args=None, kwargs=None, name='Control', context=None):
          '''
          Set the experiment's control function. Must be set before ``conduct()`` is called.
  
          :param callable control_func: your control function
          :param iterable args: positional arguments to pass to your function
          :param dict kwargs: keyword arguments to pass to your function
          :param string name: a name for your observation
          :param dict context: observation-specific context
  
          :raises LaboratoryException: If attempting to set a second control case
          '''
          if self._control is not None:
              raise exceptions.LaboratoryException(
                  'You have already established a control case'
              )
  
          self._control = {
              'func': control_func,
              'args': args or [],
              'kwargs': kwargs or {},
              'name': name,
              'context': context or {},
          }
docs: Set the experiment's control function. Must be set before ``conduct()`` is called.
  
          :param callable control_func: your control function
          :param iterable args: positional arguments to pass to your function
          :param dict kwargs: keyword arguments to pass to your function
          :param string name: a name for your observation
          :param dict context: observation-specific context
  
          :raises LaboratoryException: If attempting to set a second control case