class_docstr: Helper class to convert between `Range` and PostgreSQL range types.
  
  Objects of this class are usually created by `register_range()`. Manual
  creation could be useful if querying the database is not advisable: in
  this case the oids must be provided.
class_docstr_tok: ["Helper","class","to","convert","between","`","Range","`","and","PostgreSQL","range","types",".","Objects","of","this","class","are","usually","created","by","`","register_range","(",")","`",".","Manual","creation","could","be","useful","if","querying","the","database","is","not","advisable",":","in","this","case","the","oids","must","be","provided","."]
code: def _register(self, scope=None):
      register_type(self.typecaster, scope)
      if self.array_typecaster is not None:
          register_type(self.array_typecaster, scope)
  
      register_adapter(self.range, self.adapter)
  
imports: import re
  from psycopg2._psycopg import ProgrammingError, InterfaceError
  from psycopg2.extensions import ISQLQuote, adapt, register_adapter
  from psycopg2.extensions import new_type, new_array_type, register_type
label_desc: Use image node_id 5 for calling the RangeCaster obj's underlying member method code with example usage: obj._register(scope) without return types