code: def MSA_to_dataset(msa_path):
      """
      Convert a multiple sequence alignment to a NumpyDataset object.
      """
  
      from deepchem.data.datasets import (
          NumpyDataset,
      )  # NumpyDataset depends on utils, so imported here to prevent circular import
      from Bio import SeqIO
  
      with open(msa_path, "r") as f:
          ids = []
          sequences = []
          for record in SeqIO.parse(f, "fasta"):
              ids.append(record.id)
              seq = []
              for res in record:
                  seq.append(res)
              sequences.append(seq)
          dataset = NumpyDataset(X=sequences, ids=ids)
          return dataset
  
imports: from logging import raiseExceptions
  import os
  import subprocess
label_desc: Use image node_id 4 for calling a global function with example usage: MSA_to_dataset(msa_path) and returns: dataset