code: def get_assets(exchange, include_symbols, exclude_symbols):
      """
      Get assets from an exchange, including or excluding the specified
      symbols.
  
      Parameters
      ----------
      exchange: Exchange
      include_symbols: str
      exclude_symbols: str
  
      Returns
      -------
      list[TradingPair]
  
      """
      if include_symbols is not None:
          include_symbols_list = include_symbols.split(",")
  
          return exchange.get_assets(include_symbols_list)
  
      else:
          all_assets = exchange.get_assets()
  
          if exclude_symbols is not None:
              exclude_symbols_list = exclude_symbols.split(",")
  
              assets = []
              for asset in all_assets:
                  if asset.symbol not in exclude_symbols_list:
                      assets.append(asset)
  
              return assets
  
          else:
              return all_assets
  
file_path: catalyst/catalyst/exchange/utils/bundle_utils.py
imports: import os
  import tarfile
  import numpy
  import pandas
  from catalyst.data.bundles.core import download_without_progress
  from catalyst.exchange.utils.exchange_utils import get_exchange_bundles_folder
label_desc: Use image node_id 4 for calling a global function with example usage: get_assets(exchange, include_symbols, exclude_symbols) and returns: exchange, assets, all_assets