code: def AppendPathEntries(
        cls, path, path_separator, number_of_wildcards, skip_first):
      
      if path[-1] == path_separator:
        path = path[:-1]
  
      if skip_first:
        path = ''.join([path, path_separator, '*'])
        number_of_wildcards -= 1
  
      paths = []
      for _ in range(0, number_of_wildcards):
        path = ''.join([path, path_separator, '*'])
        paths.append(path)
  
      return paths
docs: Appends glob wildcards to a path.
  
      This function will append glob wildcards "*" to a path, returning paths
      with an additional glob wildcard up to the specified number. E.g. given
      the path "/tmp" and a number of 2 wildcards, this function will return
      "tmp/*", "tmp/*/*". When skip_first is true the path with the first
      wildcard is not returned as a result.
  
      Args:
        path (str): path to append glob wildcards to.
        path_separator (str): path segment separator.
        number_of_wildcards (int): number of glob wildcards to append.
        skip_first (bool): True if the the first path with glob wildcard should
            be skipped as a result.
  
      Returns:
        list[str]: paths with glob wildcards.