def GetProfileByName(self, profile_name, version="v1.0"):
    try:
      profile_data = open(os.path.join(
          config_lib.CONFIG["Test.data_dir"], "profiles", version,
          profile_name + ".gz"), "rb").read()

      self.profiles_served += 1

      return rdf_rekall_types.RekallProfile(name=profile_name,
                                            version=version,
                                            data=profile_data)
    except __HOLE__:
      return None
dataset/ETHPy150Open google/grr/grr/lib/test_lib.py/TestRekallRepositoryProfileServer.GetProfileByName