code: def symbol_suffix_to_prefix(symbol: str, capital: bool = True) -> str:
      """symbol suffix to prefix
  
      Parameters
      ----------
      symbol: str
          symbol
      capital : bool
          by default True
      Returns
      -------
  
      """
      code, exchange = symbol.split(".")
      if exchange.lower() in ["sh", "ss"]:
          res = f"sh{code}"
      else:
          res = f"{exchange}{code}"
      return res.upper() if capital else res.lower()
  
imports: import re
  import copy
  import importlib
  import time
  import bisect
  import pickle
  import random
  import requests
  import functools
  from pathlib import Path
  from typing import Iterable, Tuple, List
  import numpy
  import pandas
  from lxml import etree
  from loguru import logger
  from yahooquery import Ticker
  from tqdm import tqdm
  from functools import partial
  from concurrent.futures import ProcessPoolExecutor
  from bs4 import BeautifulSoup
label_desc: Use image node_id 9 for calling a global function with example usage: symbol_suffix_to_prefix(symbol, capital) and returns: unknown