docs: def from_template(cls, data, template):
          """Create a table from a predefined datatype.
  
          See the ``templates_avail`` property for available names.
  
          Parameters
          ----------
          data
              Data in a format that the ``__init__`` understands.
          template: str or dict
              Name of the dtype template to use from ``kp.dataclasses_templates``
              or a ``dict`` containing the required attributes (see the other
              templates for reference).
          """
          name = DEFAULT_NAME
          if isinstance(template, str):
              name = template
              table_info = TEMPLATES[name]
          else:
              table_info = template
          if 'name' in table_info:
              name = table_info['name']
          dt = table_info['dtype']
          loc = table_info['h5loc']
          split = table_info['split_h5']
          h5singleton = table_info['h5singleton']
  
          return cls(
              data,
              h5loc=loc,
              dtype=dt,
              split_h5=split,
              name=name,
              h5singleton=h5singleton
          )