code: def add_type(type, ext, strict=True):
      """Add a mapping between a type and an extension.
  
      When the extension is already known, the new
      type will replace the old one. When the type
      is already known the extension will be added
      to the list of known extensions.
  
      If strict is true, information will be added to
      list of standard types, else to the list of non-standard
      types.
      """
      if _db is None:
          init()
      return _db.add_type(type, ext, strict)
  
imports: import os
  import sys
  import posixpath
  import urllib.parse
label_desc: Use image node_id 4 for calling a global function with example usage: add_type(type, ext, strict) and returns: _db