class_docstr: Class to hold the matrix type.
class_docstr_tok: ["Class","to","hold","the","matrix","type","."]
code: def from_fortran(cls, fmt):
      if not len(fmt) == 3:
          raise ValueError(
              "Fortran format for matrix type should be 3 "
              "characters long"
          )
      try:
          value_type = cls._f2q_type[fmt[0]]
          structure = cls._f2q_structure[fmt[1]]
          storage = cls._f2q_storage[fmt[2]]
          return cls(value_type, structure, storage)
      except KeyError as e:
          raise ValueError("Unrecognized format %s" % fmt) from e
  
imports: import warnings
  import numpy
  from scipy.sparse import csc_matrix
  from scipy.io.harwell_boeing._fortran_format_parser import FortranFormatParser, IntFormat, ExpFormat
label_desc: Use image node_id 1 for calling the HBMatrixType obj's underlying member method code with example usage: obj.from_fortran(cls, fmt) and returns: cls