code: def bind(self, address):
          
          if self.uses_nanoconfig:
              raise ValueError("Nanoconfig address must be sole endpoint")
          endpoint_id = _nn_check_positive_rtn(
              wrapper.nn_bind(self._fd, address)
          )
          ep = Socket.BindEndpoint(self, endpoint_id, address)
          self._endpoints.append(ep)
          return ep
docs: Add a local endpoint to the socket