code: def convert_option_dict_to_dict(option_dict):
      
      ret_dict = {}
      for key, value in option_dict.items():
          if is_null(value):
              ret_dict[key] = None
          elif isinstance(value, tuple):
              ret_dict[key] = value[0]
          else:
              ret_dict[key] = value
      return ret_dict
docs: Convert a dictionary of options tuples to a simple key-value dictionary