code: def find_deps(obj,              # type: Mapping[Text, Any]
                document_loader,  # type: Loader
                uri,              # type: Text
                basedir=None,     # type: Text
                nestdirs=True     # type: bool
               ):  # type: (...) -> Dict[Text, Any]
      
      deps = {"class": "File", "location": uri, "format": CWL_IANA}  # type: Dict[Text, Any]
  
      def loadref(base, uri):
          return document_loader.fetch(document_loader.fetcher.urljoin(base, uri))
  
      sfs = scandeps(
          basedir if basedir else uri, obj, {"$import", "run"},
          {"$include", "$schemas", "location"}, loadref, nestdirs=nestdirs)
      if sfs is not None:
          deps["secondaryFiles"] = sfs
  
      return deps
docs: Find the dependencies of the CWL document.