<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def copy_info(self, other, ignore=None):
 """Copies "info" from this file to the other. "Info" is defined all groups that are not the samples group. Parameters other : output file The output file. Must be an hdf file. ignore : (list of) str Don't copy the given groups. """

        logging.info("Copying info")
        # copy non-samples/stats data
        if ignore is None:
            ignore = []
        if isinstance(ignore, (str, unicode)):
            ignore = [ignore]
        ignore = set(ignore + [self.samples_group])
        copy_groups = set(self.keys()) - ignore
        for key in copy_groups:
            super(BaseInferenceFile, self).copy(key, other)