code: def _GetExpandedPaths(args):
    
    opts = globbing.PathOpts(
        follow_links=args.follow_links, pathtype=args.pathtype)
  
    for path in args.paths:
      for expanded_path in globbing.ExpandPath(str(path), opts):
        yield expanded_path
docs: Yields all possible expansions from given path patterns.