code: def get_blast(pdb_id, chain_id='A'):
      
  
      raw_results = get_raw_blast(pdb_id, output_form='XML', chain_id=chain_id)
  
      out = xmltodict.parse(raw_results, process_namespaces=True)
      out = to_dict(out)
      out = out['BlastOutput']
      return out
docs: Return BLAST search results for a given PDB ID
      The key of the output dict())that outputs the full search results is
      'BlastOutput_iterations'
  
      To get a list of just the results without the metadata of the search use:
      hits = full_results['BlastOutput_iterations']['Iteration']['Iteration_hits']['Hit']
  
      Parameters
      ----------
      pdb_id : string
          A 4 character string giving a pdb entry of interest
  
      chain_id : string
          A single character designating the chain ID of interest
  
  
      Returns
      -------
  
      out : dict()
          A nested dict() consisting of the BLAST search results and all associated metadata
          If you just want the hits, look under four levels of keys:
          results['BlastOutput_iterations']['Iteration']['Iteration_hits']['Hit']
  
      Examples
      --------
  
      >>> blast_results = get_blast('2F5N', chain_id='A')
      >>> just_hits = blast_results['BlastOutput_iterations']['Iteration']['Iteration_hits']['Hit']
      >>> print(just_hits[50]['Hit_hsps']['Hsp']['Hsp_hseq'])
      PELPEVETVRRELEKRIVGQKIISIEATYPRMVL--TGFEQLKKELTGKTIQGISRRGKYLIFEIGDDFRLISHLRMEGKYRLATLDAPREKHDHL
      TMKFADG-QLIYADVRKFGTWELISTDQVLPYFLKKKIGPEPTYEDFDEKLFREKLRKSTKKIKPYLLEQTLVAGLGNIYVDEVLWLAKIHPEKET
      NQLIESSIHLLHDSIIEILQKAIKLGGSSIRTY-SALGSTGKMQNELQVYGKTGEKCSRCGAEIQKIKVAGRGTHFCPVCQQ