code: def build_stream_url_last_event(basic_url, stream_name):
      return urljoin(
          basic_url, "streams/" + stream_name + "/head/backward/1"
      )
  
file_path: mindsdb/mindsdb/integrations/handlers/eventstoredb_handler/utils/helpers.py
imports: from urllib.parse import urlunparse, urljoin
  import re
  import pandas
  import json
  import base64
label_desc: Use image node_id 5 for calling a global function with example usage: build_stream_url_last_event(basic_url, stream_name) and returns: urljoin