code: def from_string(string_data, file_format="xyz"):
          
          mols = pb.readstring(str(file_format), str(string_data))
          return BabelMolAdaptor(mols.OBMol)
docs: Uses OpenBabel to read a molecule from a string in all supported
          formats.
  
          Args:
              string_data: String containing molecule data.
              file_format: String specifying any OpenBabel supported formats.
  
          Returns:
              BabelMolAdaptor object