code: def getname(cls, tframe, compression=None):
      tname = cls.Names[tframe]
      if compression > 1 or tname == cls.Names[-1]:
          return tname  # for plural or 'NoTimeFrame' return plain entry
  
      # return singular if compression is 1
      return cls.Names[tframe][:-1]
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import datetime
  from datetime import datetime
  import inspect
  from .utils.py3 import range, with_metaclass
  from .lineseries import LineSeries
  from .utils import AutoOrderedDict, OrderedDict, date2num
label_desc: Use image node_id 1 for calling the TimeFrame obj's underlying member method code with example usage: obj.getname(cls, tframe, compression) and returns: cls, tname