def build_representation(self, column_name, **kwargs):
        ''' DON'T OVERRIDE THIS UNLESS YOU KNOW WHAT YOU DO
        This method is used to generate representation
        '''        
        value = None        
        # return custom_representation if exists
        if hasattr(self, 'build_representation_'+column_name):
            value = getattr(self, 'build_representation_'+column_name)(**kwargs)
        # if it is relation, retrieve it
        elif column_name in self._get_relation_names():
            relation_metadata = self._get_relation_metadata(column_name)
            # one to many
            if relation_metadata.uselist:
                value = self._build_one_to_many_representation(column_name, **kwargs)
            # many to one
            else:
                value = self._build_many_to_one_representation(column_name, **kwargs)
        else:
            # get metadata and coltype
            value = self._build_column_representation(column_name, **kwargs)            
        # If not available
        value = str(encode_string(value)) if value is not None else 'Not available'
        return value
dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/model.py/DB_Model.build_representation/original