docs: def create_logical_relationship(manager, logical_handle_id, other_handle_id, rel_type):
      """
      Makes relationship between the two nodes and returns the relationship.
      If a relationship is not possible NoRelationshipPossible exception is
      raised.
      """
      other_meta_type = get_node_meta_type(manager, other_handle_id)
      if rel_type == 'Depends_on':
          if other_meta_type == 'Logical' or other_meta_type == 'Physical':
              return _create_relationship(manager, logical_handle_id, other_handle_id, rel_type)
      elif rel_type == 'Part_of':
          if other_meta_type == 'Physical':
              return _create_relationship(manager, logical_handle_id, other_handle_id, rel_type)
      raise exceptions.NoRelationshipPossible(logical_handle_id, 'Logical', other_handle_id, other_meta_type, rel_type)