def get_block_type(self, direction):
        """Find the type of the adjacent block in the given direction."""
        request = self._new_action()
        request.read_request.identify_material.direction = direction.value
        material_id = self._action(request).material_response.type
        if material_id in BlockType.value_map:
            return BlockType.value_map[material_id]
        logging.warn("Unrecognized block type: %d", material_id)
        return None
dataset/ETHPy150Open katharosada/botchallenge/client/botchallenge/robot.py/Robot.get_block_type/original