<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def setup_from_yamlfile(self, yamlfile, output_shell=False):
 """ Setup from yaml config @param yamlfile: path to yaml config file @type yamlfile: str @param output_shell: write output from this connection to standard output @type output_shell: bool """

        self.logger.debug('Loading config from ' + yamlfile)
        with open(yamlfile, 'r') as yamlfd:
            yamlconfig = yaml.load(yamlfd)
            for instance in yamlconfig['Instances']:
                self.add_instance(instance['role'].upper(),
                                  instance,
                                  output_shell=output_shell)
            if 'Config' in yamlconfig.keys():
                self.logger.debug('Config found: ' + str(yamlconfig['Config']))
                self.config = yamlconfig['Config'].copy()