<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_file(cls, fname, version=None, require_https=True):
 """ Create a Hive object based on JSON located in a local file. """

        if os.path.exists(fname):
            with open(fname) as hive_file:
                return cls(**json.load(hive_file)).from_version(version, require_https=require_https)
        else:
            raise MissingHive(fname)