<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ndsname(self):
 """Name of this channel as stored in the NDS database """

        if self.type not in [None, 'raw', 'reduced', 'online']:
            return '%s,%s' % (self.name, self.type)
        return self.name