code: def get_nearest(search_term, src, dst, edf):
      """
          finds `search_term` in src or dst nodes.
      :param search_term: str search term
      :param src: source node
      :param dst: destination node
      :param edf: edges dataframe
      :return: pandas.DataFrame
      """
      logger.info(
          f"Finding {search_term} in both {src} and {dst} columns"
      )
      tdf = pd.concat(
          [
              search_to_df(search_term, src, edf),
              search_to_df(search_term, dst, edf),
          ],
          axis=0,
      )
      return tdf
  
file_path: pygraphistry/graphistry/ai_utils.py
imports: import pandas
  import numpy
  import graphistry
  from .constants import DISTANCE, WEIGHT, BATCH
  from logging import getLogger
label_desc: Use image node_id 2 for calling a global function with example usage: get_nearest(search_term, src, dst, edf) and returns: tdf