code: def load_file(filename, encoding):
      
      try:
          with gzip.open(filename, mode="rt") as fobj:
              yield fobj.read()
      except (OSError, IOError):
          with OPEN(filename, mode="r", encoding=encoding) as fobj:
              yield fobj.read()
docs: Context manager to handle opening a gzip or text file correctly and
          reading all the data
  
          Args:
              filename (str): The filename to open
              encoding (str): The file encoding to use
          Yields:
              str: The string data from the file read