code: def from_poscar_string(poscar_string, transformations=None):
          
          p = Poscar.from_string(poscar_string)
          if not p.true_names:
              raise ValueError("Transformation can be craeted only from POSCAR "
                               "strings with proper VASP5 element symbols.")
          raw_string = re.sub(r"'", "\"", poscar_string)
          s = p.structure
          source_info = {"source": "POSCAR",
                         "datetime": str(datetime.datetime.now()),
                         "original_file": raw_string}
          return TransformedStructure(s, transformations, history=[source_info])
docs: Generates TransformedStructure from a poscar string.
  
          Args:
              poscar_string (str): Input POSCAR string.
              transformations ([Transformations]): Sequence of transformations
                  to be applied to the input structure.