docs: def from_path(klass, path, tabix_path=None, record_checks=None, parsed_samples=None):
          """Create new :py:class:`Reader` from path
  
          .. note::
              If you use the ``parsed_samples`` feature and you write out
              records then you must not change the ``FORMAT`` of the record.
  
          :param path: the path to load from (converted to ``str`` for
              compatibility with ``path.py``)
          :param tabix_path: optional string with path to TBI index,
              automatic inferral from ``path`` will be tried on the fly
              if not given
          :param list record_checks: record checks to perform, can contain
              'INFO' and 'FORMAT'
          """
          record_checks = record_checks or []
          path = str(path)
          if path.endswith(".gz"):
              f = gzip.open(path, "rt")
              if not tabix_path:
                  tabix_path = path + ".tbi"
                  if not os.path.exists(tabix_path):
                      tabix_path = None  # guessing path failed
          else:
              f = open(path, "rt")
          return klass.from_stream(
              stream=f,
              path=path,
              tabix_path=tabix_path,
              record_checks=record_checks,
              parsed_samples=parsed_samples,
          )