code: def GetScripts(self, dest_dir):
      
      metadata_dict = self.watcher.GetMetadata() or {}
  
      try:
        instance_data = metadata_dict['instance']['attributes']
      except KeyError:
        instance_data = None
        self.logger.warning('Instance attributes were not found.')
  
      try:
        project_data = metadata_dict['project']['attributes']
      except KeyError:
        project_data = None
        self.logger.warning('Project attributes were not found.')
  
      return (self._GetAttributeScripts(instance_data, dest_dir)
              or self._GetAttributeScripts(project_data, dest_dir))
docs: Retrieve the scripts to execute.
  
      Args:
        dest_dir: string, the path to a directory for storing metadata scripts.
  
      Returns:
        dict, a dictionary mapping set metadata keys with associated scripts.