code: def copy_table(from_table, name):
      
      metadata = from_table.metadata
  
      if name in metadata.tables:
          return metadata.tables[name]
  
      schema = metadata.schema
  
      columns = [
          copy_column(column, schema)
          for column in from_table.columns
          if should_copy(column)
      ]
  
      return Table(
          name,
          metadata,
          schema=schema,
          comment=from_table.comment,
          *columns,
          **from_table.kwargs,
      )
docs: Copy a table.
  
      Based on `Table.tometadata`, but simplified to remove constraints and indexes.