code: def send_profiling_results(profiling_data: dict):
      if MINDSDB_PROFILING_ENABLED is False:
          return
  
      profiling = profiling_data
      set_level(profiling["tree"], 0, {"id": 0})
  
      time_start_at = profiling["tree"]["time_start_at"]
      del profiling["tree"]["time_start_at"]
  
      try:
          connection = psycopg.connect(
              host=MINDSDB_PROFILING_DB_HOST,
              port=5432,
              user=MINDSDB_PROFILING_DB_USER,
              password=MINDSDB_PROFILING_DB_PASSWORD,
              dbname="postgres",
              connect_timeout=5,
          )
      except Exception:
          logger.error("cant get acceess to profiling database")
          return
      cur = connection.cursor()
      cur.execute(
          """
          insert into profiling
              (data, query, time, hostname, environment, api, total_time, company_id, instance_id)
          values
              (%s, %s, %s, %s, %s, %s, %s, %s, %s)
      """,
          (
              json.dumps(profiling["tree"]),
              profiling.get("query", "?"),
              time_start_at,
              profiling["hostname"],
              profiling.get("environment", "?"),
              profiling.get("api", "?"),
              profiling["tree"]["value"],
              profiling["company_id"],
              profiling["instance_id"],
          ),
      )
  
      connection.commit()
      cur.close()
      connection.close()
  
imports: import os
  import json
  import psycopg
  from mindsdb.utilities import log
label_desc: Use image node_id 2 for calling a global function with example usage: send_profiling_results(profiling_data) without return types