code: def _create_check_config(cls, options, use_defaults=True):
          
          checked_codes = None
  
          if cls._has_exclusive_option(options) or use_defaults:
              checked_codes = cls._get_checked_errors(options)
  
          kwargs = dict(checked_codes=checked_codes)
          for key in ('match', 'match_dir', 'ignore_decorators'):
              kwargs[key] = getattr(cls, 'DEFAULT_{}_RE'.format(key.upper())) \
                  if getattr(options, key) is None and use_defaults \
                  else getattr(options, key)
          return CheckConfiguration(**kwargs)
docs: Create a `CheckConfiguration` object from `options`.
  
          If `use_defaults`, any of the match options that are `None` will
          be replaced with their default value and the default convention will be
          set for the checked codes.