def get_key_name(self):
        """
        Function which returns an original key name.

        :rtype: ``str``
        """
        key_name_parts = [DATASTORE_PARENT_SCOPE, self.scope]
        key_name = self._key_prefix.split(":", 1)

        if len(key_name) == 1:
            key_name = key_name[0]
        elif len(key_name) >= 2:
            key_name = key_name[1]
        else:
            key_name = ""

        key_name_parts.append(key_name)
        key_name = ".".join(key_name_parts)
        return key_name

        Function which returns an original key name.

        :rtype: ``str``
        
st2common/st2common/services/keyvalues.py