code: def add_object_to_scope(self, obj):
          
          if isinstance(obj, Computer):
              self.add_object_to_path(obj, "scope/computers")
          elif isinstance(obj, ComputerGroup):
              self.add_object_to_path(obj, "scope/computer_groups")
          elif isinstance(obj, Building):
              self.add_object_to_path(obj, "scope/buildings")
          elif isinstance(obj, Department):
              self.add_object_to_path(obj, "scope/departments")
          else:
              raise TypeError
docs: Add an object to the appropriate scope block.
  
          Args:
              obj: JSSObject to add to scope. Accepted subclasses are:
                  Computer
                  ComputerGroup
                  Building
                  Department
  
          Raises:
              TypeError if invalid obj type is provided.