docs: def _setup_install_commands_from_kwargs(kwargs, keys=tuple()):
          """Setup install commands for conda."""
          cmd_list = []
          if kwargs.get('override_channels', False) and 'channel' not in kwargs:
              raise TypeError('conda search: override_channels requires channel')
  
          if 'env' in kwargs:
              cmd_list.extend(['--name', kwargs.pop('env')])
          if 'prefix' in kwargs:
              cmd_list.extend(['--prefix', kwargs.pop('prefix')])
          if 'channel' in kwargs:
              channel = kwargs.pop('channel')
              if isinstance(channel, str):
                  cmd_list.extend(['--channel', channel])
              else:
                  cmd_list.append('--channel')
                  cmd_list.extend(channel)
  
          for key in keys:
              if key in kwargs and kwargs[key]:
                  cmd_list.append('--' + key.replace('_', '-'))
  
          return cmd_list