code: def from_stream(
          klass, stream, path=None, tabix_path=None, record_checks=None, parsed_samples=None
      ):
          
          record_checks = record_checks or []
          if tabix_path and not path:
              raise ValueError("Must give path if tabix_path is given")
          return Reader(
              stream=stream,
              path=path,
              tabix_path=tabix_path,
              record_checks=record_checks,
              parsed_samples=parsed_samples,
          )
docs: Create new :py:class:`Reader` from file
  
          .. note::
              If you use the ``parsed_samples`` feature and you write out
              records then you must not change the ``FORMAT`` of the record.
  
          :param stream: ``file``-like object to read from
          :param path: optional string with path to store (for display only)
          :param list record_checks: record checks to perform, can contain
              'INFO' and 'FORMAT'
          :param list parsed_samples: ``list`` of ``str`` values with names of
              samples to parse call information for (for speedup); leave to
              ``None`` for ignoring