code: def write_serie_to_cfg(self, serie_id):
      if len(serie_id) == 0:
          print("serie_id is empty.")
          return False
      if serie_id in self._exist_series:
          return True
  
      with open(self._serie_cfg_path, "a") as f:
          fcntl.flock(f.fileno(), fcntl.LOCK_EX)
          f.write("%s\n" % serie_id)
          self._exist_series.append(serie_id)
      return True
  
file_path: mace/tools/dana/dana_cli.py
imports: import fcntl
  import json
  import os
label_desc: Use image node_id 12 for calling the DanaCli obj's underlying member method code with example usage: obj.write_serie_to_cfg(serie_id) and returns: True, False, True