code: def from_proto(brain_param_proto):
          
          resolution = [{
              "height": x.height,
              "width": x.width,
              "blackAndWhite": x.gray_scale
          } for x in brain_param_proto.camera_resolutions]
          brain_params = BrainParameters(brain_param_proto.brain_name,
                                         brain_param_proto.vector_observation_size,
                                         brain_param_proto.num_stacked_vector_observations,
                                         resolution,
                                         list(brain_param_proto.vector_action_size),
                                         list(brain_param_proto.vector_action_descriptions),
                                         brain_param_proto.vector_action_space_type)
          return brain_params
docs: Converts brain parameter proto to BrainParameter object.
          :param brain_param_proto: protobuf object.
          :return: BrainParameter object.