code: def get_package(self, team, user, package, pkghash=None):
          
          self.check_name(team, user, package)
          path = self.package_path(team, user, package)
          if not os.path.isdir(path):
              return None
  
          if pkghash is None:
              latest_tag = os.path.join(path, self.TAGS_DIR, self.LATEST)
              if not os.path.exists(latest_tag):
                  return None
  
              with open (latest_tag, 'r') as tagfile:
                  pkghash = tagfile.read()
  
          assert pkghash is not None
          contents_path = os.path.join(path, self.CONTENTS_DIR, pkghash)
          if not os.path.isfile(contents_path):
              return None
  
          with open(contents_path, 'r') as contents_file:
              try:
                  return json.load(contents_file, object_hook=decode_node)
              except AssertionError as err:
                  if str(err).startswith("Bad package format"):
                      name = "{}{}/{}, {}".format(
                          team + ':' if team else '',
                          user,
                          package,
                          pkghash
                          )
                      raise StoreException("Error in {}: {}".format(name, str(err)))
                  else:
                      raise
docs: Gets a package from this store.