@staticmethod
    def get_by_path(obj, path):
        a_path = path.split(".")
        for seg in a_path:
            if obj is None: return None
            if not isinstance(obj, dict): return None
            if seg == "": continue
            if seg not in obj: return None
            obj = obj[seg]
        return obj
  
    ## @ignore
dataset/ETHPy150Open sakura-internet/saklient.python/saklient/util.py/Util.get_by_path/original