code: def find_candidate_metadata_files(names):
          
          tuples = [
              x.split('/') for x in map(try_decode, names)
              if 'METADATA' in x
          ]
          return [x[1] for x in sorted([(len(x), x) for x in tuples])]
docs: Filter files that may be METADATA files.