code: def _construct_cmd_apple(self, args):
      force_load_flag = "-Wl,-force_load,"
      is_inside_wa_markers = False
  
      cmd = []
      for arg in args:
          if arg.startswith(force_load_flag):
              cmd.append(arg)
          elif arg == self.start_wa_marker:
              is_inside_wa_markers = True
          elif arg == self.end_wa_marker:
              is_inside_wa_markers = False
          elif is_inside_wa_markers:
              cmd.append(force_load_flag + arg)
          else:
              key = self._process_arg(arg)
              cmd.append(force_load_flag + arg if key else arg)
  
      self._check_peers()
  
      return cmd
  
file_path: catboost/build/scripts/process_whole_archive_option.py
imports: import os
  import process_command_files
label_desc: Use image node_id 6 for calling the ProcessWholeArchiveOption obj's underlying member method code with example usage: obj._construct_cmd_apple(args) and returns: cmd