code: def get_sid(symbol):
      """
      Create a sid by hashing the symbol of a currency pair.
  
      Parameters
      ----------
      symbol: str
  
      Returns
      -------
      int
          The resulting sid.
  
      """
      sid = (
          int(hashlib.sha256(symbol.encode("utf-8")).hexdigest(), 16)
          % 10**6
      )
      return sid
  
imports: import hashlib
  import json
  import os
  import pickle
  import shutil
  from datetime import date, datetime
  import pandas
  from catalyst.assets._assets import TradingPair
  from six import string_types
  from six.moves.urllib import request
  from catalyst.constants import DATE_FORMAT, SYMBOLS_URL
  from catalyst.exchange.exchange_errors import ExchangeSymbolsNotFound
  from catalyst.exchange.utils.serialization_utils import ExchangeJSONEncoder, ExchangeJSONDecoder
  from catalyst.utils.memoize import weak_lru_cache
  from catalyst.utils.paths import data_root, ensure_directory, last_modified_time
label_desc: Use image node_id 1 for calling a global function with example usage: get_sid(symbol) and returns: sid