code: def from_nodes(cls, nodes, _copy=True):
          
          _, num_nodes = nodes.shape
          degree = cls._get_degree(num_nodes)
          return cls(nodes, degree, _copy=_copy)
docs: Create a :class:`.Surface` from nodes.
  
          Computes the ``degree`` based on the shape of ``nodes``.
  
          Args:
              nodes (numpy.ndarray): The nodes in the surface. The columns
                  represent each node while the rows are the dimension
                  of the ambient space.
              _copy (bool): Flag indicating if the nodes should be copied before
                  being stored. Defaults to :data:`True` since callers may
                  freely mutate ``nodes`` after passing in.
  
          Returns:
              Surface: The constructed surface.