def METHOD_NAME(
    args: rdf_file_finder.FileFinderArgs,
    heartbeat_cb: Callable[[], None] = _NoOp,
) -> Iterator[Text]:
  """Yields all possible expansions from given path patterns."""
  if args.HasField("implementation_type"):
    implementation_type = args.implementation_type
  else:
    implementation_type = None
  opts = globbing.PathOpts(
      follow_links=args.follow_links,
      pathtype=args.pathtype,
      implementation_type=implementation_type)
  for path in args.paths:
    for expanded_path in globbing.ExpandPath(str(path), opts, heartbeat_cb):
      yield expanded_path