original_docstring: 
      Method to check if an IMEI is paired.
  
      :param cursor: db cursor
      :param imei_norm: normalized imei
      :return: bool
      
docstring: Method to check if an IMEI is paired.
docstring_tokens: Method to check if an IMEI is paired .
code: def is_paired(cursor, imei_norm):
      """
      Method to check if an IMEI is paired.
  
      :param cursor: db cursor
      :param imei_norm: normalized imei
      :return: bool
      """
      cursor.execute("""SELECT EXISTS(SELECT 1
                                        FROM pairing_list
                                       WHERE imei_norm = %(imei_norm)s
                                         AND virt_imei_shard = calc_virt_imei_shard(%(imei_norm)s))""",
                     {'imei_norm': imei_norm})
      return cursor.fetchone()[0]
code_tokens: def is_paired ( cursor , imei_norm ) : cursor . execute ( """SELECT EXISTS(SELECT 1
                                        FROM pairing_list
                                       WHERE imei_norm = %(imei_norm)s
                                         AND virt_imei_shard = calc_virt_imei_shard(%(imei_norm)s))""" , { 'imei_norm' : imei_norm } ) return cursor . fetchone ( ) [ 0 ]
short_docstring: Method to check if an IMEI is paired.
short_docstring_tokens: Method to check if an IMEI is paired .
comment: """
      Method to check if an IMEI is paired.
  
      :param cursor: db cursor
      :param imei_norm: normalized imei
      :return: bool
      """