code: def package_paths():
      if R_PACKAGE_PATHS is not None:
          root = R_PACKAGE_PATHS["package"]
          prefixlen = len("%s/" % root.rstrip("/"))
          for path, dirs, files in os.walk(R_PACKAGE_PATHS["package"]):
              if "/." in path:
                  continue
              for fname in files:
                  if fname[0] == ".":
                      continue
                  p = os.path.join(path, fname)
                  yield p, os.path.join("metaflow-r", p[prefixlen:])
          flow = R_PACKAGE_PATHS["flow"]
          yield flow, os.path.basename(flow)
  
file_path: metaflow/metaflow/R.py
imports: import os
  import sys
  from importlib import util, machinery
  from tempfile import NamedTemporaryFile
  from .util import to_bytes
label_desc: Use image node_id 3 for calling a global function with example usage: package_paths() without return types