code: def get_trading_date_by_shift(
      trading_list: list, trading_date: pd.Timestamp, shift: int = 1
  ):
      """get trading date by shift
  
      Parameters
      ----------
      trading_list: list
          trading calendar list
      shift : int
          shift, default is 1
  
      trading_date : pd.Timestamp
          trading date
      Returns
      -------
  
      """
      trading_date = pd.Timestamp(trading_date)
      left_index = bisect.bisect_left(trading_list, trading_date)
      try:
          res = trading_list[left_index + shift]
      except IndexError:
          res = trading_date
      return res
  
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 12 for calling a global function with example usage: get_trading_date_by_shift(trading_list, trading_date, shift) and returns: res