def look_at_obj(self, objecttype):
    # Step 1: Find the object
    entity = self.find_object(objecttype)
    if entity is None:
        # If the object is not found, explore the environment
        self.explore()
        return
    
    # Step 2: Pick up the object if not already holding it
    if self.name2type(self.holding)!= self.name2type(objecttype):
        self.goto(entity.in_on)
        r_entity = self.seen_entitys[entity.in_on]
        if r_entity.openable and not r_entity.isopen:
            self.open_receptacle(r_entity.name)
        self.take(entity.name, entity.in_on)
    
    # Step 3: Find a desklamp
    desklamp = self.find_receptacle('desklamp')
    if desklamp is None:
        # If the desklamp is not found, explore the environment
        self.explore()
        return
    
    # Step 4: Turn on the desklamp
    self.goto(desklamp.name)
    self.turn_on(desklamp.name)