def METHOD_NAME(self, spec:str) -> InferenceFact:
    """
    Parse an fact specification as an `InferenceFact`
    Typical `InferenceFact` specification is in the form "1,224,224,3,f32". Comma-separated
    list of dimension, one for each axis, plus an mnemonic for the element type. f32 is 
    single precision "float", i16 is a 16-bit signed integer, and u8 a 8-bit unsigned integer.
    """
    self._valid()
    spec = str(spec).encode("utf-8")
    METHOD_NAME = c_void_p();
    check(lib.tract_inference_fact_parse(self.ptr, spec, byref(METHOD_NAME)))
    return InferenceFact(METHOD_NAME)