code: def import_dbapi(cls):
      module = __import__("pymssql")
      # pymmsql < 2.1.1 doesn't have a Binary method.  we use string
      client_ver = tuple(int(x) for x in module.__version__.split("."))
      if client_ver < (2, 1, 1):
          # TODO: monkeypatching here is less than ideal
          module.Binary = (
              lambda x: x if hasattr(x, "decode") else str(x)
          )
  
      if client_ver < (1,):
          util.warn(
              "The pymssql dialect expects at least "
              "the 1.0 series of the pymssql DBAPI."
          )
      return module
  
file_path: sqlalchemy/lib/sqlalchemy/dialects/mssql/pymssql.py
imports: import re
  from .base import MSDialect
  from .base import MSIdentifierPreparer
  from ...None import types
  from ...None import util
  from ...engine import processors
label_desc: Use image node_id 1 for calling the MSDialect_pymssql obj's underlying member method code with example usage: obj.import_dbapi(cls) and returns: module