(self, model_id: str, normalized_option_name: str, type_data: dict)
:param model_id: 'shared' or 'instance' Used for the function name
        :param normalized_option_name: Used to build the function name
        :type_data: dict containing all the relevant information to build the function
:param model_id: 'shared' or 'instance' Used for the function name
        :param normalized_option_name: Used to build the function name
        :type_data: dict containing all the relevant information to build the function
: param model_id : shared or instance Used for the function name : param normalized_option_name : Used to build the function name : type_data : dict containing all the relevant information to build the function
def add_defaults(self, model_id: str, normalized_option_name: str, type_data: dict):
        """
        :param model_id: 'shared' or 'instance' Used for the function name
        :param normalized_option_name: Used to build the function name
        :type_data: dict containing all the relevant information to build the function
        """
        self.defaults_file_lines.extend(['', '', f'def {model_id}_{normalized_option_name}(field, value):'])

        default_value = self._get_default_value(type_data)
        if default_value is not NO_DEFAULT:
            self.defaults_file_needs_value_normalization = True
            self.defaults_file_lines.append(f'    return {default_value!r}')
        else:
            self.defaults_file_needs_dynamic_values = True
            self.defaults_file_lines.append('    return get_default_field_value(field, value)')
def add_defaults ( self , model_id : str , normalized_option_name : str , type_data : dict ) : self . defaults_file_lines . extend ( [ '' , '' , f'def {model_id}_{normalized_option_name}(field, value):' ] ) default_value = self . _get_default_value ( type_data ) if default_value is not NO_DEFAULT : self . defaults_file_needs_value_normalization = True self . defaults_file_lines . append ( f'    return {default_value!r}' ) else : self . defaults_file_needs_dynamic_values = True self . defaults_file_lines . append ( '    return get_default_field_value(field, value)' )