code: def select_random_exchanges(
      population=3,
      features=None,
      is_authenticated=False,
      quote_currency=None,
  ):
      all_exchanges = find_exchanges(
          features=features,
          is_authenticated=is_authenticated,
          quote_currency=quote_currency,
      )
  
      if population is not None:
          if len(all_exchanges) < population:
              population = len(all_exchanges)
  
          exchanges = random.sample(all_exchanges, population)
  
      else:
          exchanges = all_exchanges
  
      return exchanges
  
file_path: catalyst/catalyst/exchange/utils/test_utils.py
imports: import os
  import random
  import tempfile
  from catalyst.assets._assets import TradingPair
  from catalyst.exchange.exchange_bundle import ExchangeBundle
  from catalyst.exchange.utils.exchange_utils import get_exchange_folder
  from catalyst.exchange.utils.factory import find_exchanges
  from catalyst.utils.paths import ensure_directory
label_desc: Use image node_id 2 for calling a global function with example usage: select_random_exchanges(population, features, is_authenticated, quote_currency) and returns: exchanges