code: def get_table_url(table_name: str) -> str:
      spark = get_spark_session()
      url = (
          spark.sql(f"DESCRIBE FORMATTED {table_name}")
          .filter((col("col_name") == "Location"))
          .select("data_type")
          .toPandas()
          .astype(str)["data_type"]
          .values[0]
      )
      # unfortunately url is file:/... or hdfs:/... not file:///...
      # so we need to insert '//'
      assert url.count(":") == 1, f"{url} has more than one :"
      schema, path = url.split(":")
      return f"{schema}://{path}"
  
file_path: ReAgent/reagent/data/spark_utils.py
imports: import logging
  import pprint
  from os.path import abspath, dirname, join
  from typing import Dict, Optional
  import reagent
  from pyspark.sql import SparkSession
  from pyspark.sql.functions import col
label_desc: Use image node_id 3 for calling a global function with example usage: get_table_url(table_name) and returns: schema, str, path