'Create a `VOTableFile` instance from a given
`astropy.table.Table` instance.
Parameters
table_id : str, optional
Set the given ID attribute on the returned Table instance.'

@classmethod
def from_table(cls, table, table_id=None):

    votable_file = cls()
    resource = Resource()
    votable = Table.from_table(votable_file, table)
    if (table_id is not None):
        votable.ID = table_id
    resource.tables.append(votable)
    votable_file.resources.append(resource)
    return votable_file
