code: def generate_sync_txt_file(in_path, channels=("CH1", "CH1"), new_path='sync_file.txt'):
      
      if type(in_path) is str:
          _create_txt_from_str(in_path, channels, new_path)
      elif type(in_path) is list:
          _create_txt_from_list(in_path, channels, new_path)
      else:
          raise TypeError('The path should be a list of str or a str.')
docs: -----
      Brief
      -----
      This function allows to generate a text file with synchronised signals from the input file(s).
  
      -----------
      Description
      -----------
      OpenSignals files follow a specific structure that allows to analyse all files in the same way. Furthermore, it
      allows those files to be opened and analysed in the OpenSignals software without the need of programming.
  
      This functions takes one or two files, synchronises the signals in channels and generates a new file in the new
      path.
  
      ----------
      Parameters
      ----------
      in_path : str or list
          If the input is a string, it is assumed that the two signals are in the same file, else, if the input is a list,
          it is assumed that the two signals are in different file (the list should contain the paths to the two files).
      channels : list
          List with the strings identifying the channels of each signal. (default: ("CH1", "CH1"))
      new_path : str
          The path to create the new file. (default: 'sync_file.txt')