code: def get_names_and_paths(compiler_output: Dict[str, Any]) -> Dict[str, str]:
      
      return {
          contract_name: make_path_relative(path)
          for path in compiler_output
          for contract_name in compiler_output[path].keys()
      }
docs: Return a mapping of contract name to relative path as defined in compiler output.