code: def get_default_val(pat):
      key = _get_single_key(pat, silent=True)
      return _get_registered_option(key).defval
  
imports: from collections import namedtuple
  from contextlib import contextmanager
  import re
  import warnings
  import pandas.compat
  from pandas.compat import lmap, map, u
label_desc: Use image node_id 6 for calling a global function with example usage: get_default_val(pat) and returns: _get_registered_option