code: def find_files(paths, repo, target_branch):
      if paths and target_branch:
          git_modified = [
              os.fspath(f)
              for f in find_git_modified_files(repo, target_branch)
          ]
          for path in paths:
              yield from (
                  f for f in walk(path) if os.fspath(f) in git_modified
              )
      elif paths:
          for path in paths:
              yield from walk(path)
      elif target_branch:
          yield from find_git_modified_files(repo, target_branch)
      else:
          yield from walk(Path.cwd())
  
imports: import argparse
  import datetime
  import logging
  import os
  import re
  import sys
  from pathlib import Path
  from typing import Optional
  import git
label_desc: Use image node_id 7 for calling a global function with example usage: find_files(paths, repo, target_branch) without return types