class_docstr: Parameters
  ---------
  country_group : h5py.Group
      The group for a single country in an HDF5 daily pricing file.
class_docstr_tok: ["Parameters","--","--","--","--","-","country_group",":","h5py.Group","The","group","for","a","single","country","in","an","HDF5","daily","pricing","file","."]
docstr: Construct from an h5py.File and a country code.
  
  Parameters
  ----------
  h5_file : h5py.File
      An HDF5 daily pricing file.
  country_code : str
      The ISO 3166 alpha-2 country code for the country to read.
docstr_tok: ["Construct","from","an","h5py.File","and","a","country","code",".","Parameters","--","--","--","--","--","h5_file",":","h5py.File","An","HDF5","daily","pricing","file",".","country_code",":","str","The","ISO","3166","alpha-2","country","code","for","the","country","to","read","."]
code: def from_file(cls, h5_file, country_code):
      """
      Construct from an h5py.File and a country code.
  
      Parameters
      ----------
      h5_file : h5py.File
          An HDF5 daily pricing file.
      country_code : str
          The ISO 3166 alpha-2 country code for the country to read.
      """
      if h5_file.attrs["version"] != VERSION:
          raise ValueError(
              "mismatched version: file is of version %s, expected %s"
              % (
                  h5_file.attrs["version"],
                  VERSION,
              ),
          )
  
      return cls(h5_file[country_code])
  
imports: from functools import partial
  import h5py
  import logbook
  import numpy
  import pandas
  from six import iteritems, raise_from, viewkeys
  from six.moves import reduce
  from zipline.data.bar_reader import NoDataAfterDate, NoDataBeforeDate, NoDataForSid, NoDataOnDate
  from zipline.data.session_bars import CurrencyAwareSessionBarReader
  from zipline.utils.memoize import lazyval
  from zipline.utils.numpy_utils import bytes_array_to_native_str_object_array
  from zipline.utils.pandas_utils import check_indexes_all_same
label_desc: Use image node_id 2 for calling the HDF5DailyBarReader obj's underlying member method code with example usage: obj.from_file(cls, h5_file, country_code) and returns: cls