code: def logical_definitions(self, nid):
          
          ldefs = self.all_logical_definitions
          if ldefs is not None:
              #print("TESTING: {} AGAINST LD: {}".format(nid, str(ldefs)))
              return [x for x in ldefs if x.class_id == nid]
          else:
              return []
docs: Retrieves logical definitions for a class id
  
          Arguments
          ---------
          nid : str
              Node identifier for entity to be queried
  
          Returns
          -------
          LogicalDefinition