def METHOD_NAME(self, prefix: str = None):
    if prefix is not None:
        assert isinstance(
            prefix, str), 'prefix must be a str, but got {}'.format(prefix)
    else:
        prefix = self._type
    generated_ids = []
    for i in range(0, self.__len__()):
        generated_ids.append(prefix + '_' + str(i))
    self._generated_ids = generated_ids
    def get_func():
        return self._generated_ids
    self.get_sample_ids = get_func