def look_at_obj(self, objecttype):
    # Check if the agent is already holding the object
    if self.name2type(self.holding) != self.name2type(objecttype):
        # Find the object
        entity = self.find_object(objecttype)
        if entity is None:
            # Explore the environment to find the object
            self.explore()
            return
        else:
            # Go to the object's receptacle and take it
            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)
            return
    else:
        # The agent is already holding the object
        pass

    # Find a desklamp
    desklamp = self.find_receptacle('desklamp')
    if desklamp is None:
        # Explore the environment to find a desklamp
        self.explore()
        return
    else:
        # Go to the desklamp
        self.goto(desklamp.name)
        
        # Turn on the desklamp
        if not desklamp.ison:
            self.turn_on(desklamp.name)
        
        # Now the agent can examine the object
        # Assuming that examining the object is just a placeholder action
        # since the environment doesn't provide a specific method for examining objects
        print(f"Examining {self.holding} under the light of {desklamp.name}.")
        return