code: def profiles(self):
          
          selected_profiles = []
          for config in self.included_profiles:
              profile_selected = False
              profile_name = config.get('profile_name')
  
              if profile_name == self.args.profile:
                  profile_selected = True
              elif config.get('group') is not None and config.get('group') == self.args.group:
                  profile_selected = True
              elif self.args.group in config.get('groups', []):
                  profile_selected = True
  
              if profile_selected:
                  install_json_filename = config.get('install_json')
                  ij = {}
                  if install_json_filename is not None:
                      ij = self.load_install_json(install_json_filename)
                  config['install_json'] = ij
                  selected_profiles.append(config)
  
              self.reports.add_profile(config, profile_selected)
  
          if not selected_profiles:
              print('{}{}No profiles selected to run.'.format(c.Style.BRIGHT, c.Fore.YELLOW))
  
          return selected_profiles
docs: Return all selected profiles.