code: def load_resfile(directory, resfile_path=None):
      
  
      if resfile_path is None:
          workspace = workspace_from_dir(directory)
          resfile_path = workspace.resfile_path
  
      from klab.rosetta.input_files import Resfile
      return Resfile(resfile_path)
docs: Return a list of tuples indicating the start and end points of the loops
      that were sampled in the given directory.