code: def to_basis_like(self, basis):
          
          try:  # To treat as a curve.
              curve = basis
              basis = curve.basis
              undefined = curve.null
          except:
              undefined = None
  
          return self.to_basis(basis=basis,
                               undefined=undefined)
docs: Make a new curve in a new basis, given an existing one. Wraps
          ``to_basis()``.
  
          Pass in a curve or the basis of a curve.
  
          Args:
              basis (ndarray): A basis, but can also be a Curve instance.
  
          Returns:
              Curve. The current instance in the new basis.