code: def lock_status(self, resource_id, parent_id=None, account_id=None):
          
          account_id = self.get_account_id(account_id)
          params = parent_id and {'parent_id': parent_id} or None
          return self.http.get(
              "%s/%s/locks/%s" % (self.endpoint, account_id, resource_id),
              params=params, auth=self.get_api_auth())
docs: Get the lock status for a given resource.
  
          for security groups, parent id is their vpc.