code: def libpq_version():
      v = psycopg2.__libpq_version__
      if v >= 90100:
          v = min(v, psycopg2.extensions.libpq_version())
      return v
  
imports: import re
  import os
  import sys
  import types
  import ctypes
  import select
  import operator
  import platform
  import unittest
  from functools import wraps
  from ctypes.util import find_library
  from io import StringIO
  from io import TextIOBase
  from importlib import reload
  import psycopg2
  import psycopg2.errors
  import psycopg2.extensions
  from .testconfig import green, dsn, repl_dsn
label_desc: Use image node_id 7 for calling a global function with example usage: libpq_version() and returns: v