code: def _get_cmds_id(*cmds):
      
      tags = [cmd[2] if len(cmd) == 3 else None for cmd in cmds]
      if [tag for tag in tags if tag != None]:
          return tuple(tags)
      else:
          return None
docs: Returns an identifier for a group of partially tagged commands.
      If there are no tagged commands, returns None.