code: def from_file(cls, fname, version=None, require_https=True):
          
          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)
docs: Create a Hive object based on JSON located in a local file.