class_docstr: A space representing a string comprised of characters from a given charset.
  
  Example::
      >>> # {"", "B5", "hello", ...}
      >>> Text(5)
      >>> # {"0", "42", "0123456789", ...}
      >>> import string
      >>> Text(min_length = 1,
      ...      max_length = 10,
      ...      charset = string.digits)
class_docstr_tok: ["A","space","representing","a","string","comprised","of","characters","from","a","given","charset",".","Example",":",":",">",">",">","#","{","``","''",",","``","B5","''",",","``","hello","''",",","...","}",">",">",">","Text","(","5",")",">",">",">","#","{","``","0","''",",","``","42","''",",","``","0123456789","''",",","...","}",">",">",">","import","string",">",">",">","Text","(","min_length","=","1",",","...","max_length","=","10",",","...","charset","=","string.digits",")"]
docstr: Check whether ``other`` is equivalent to this instance.
docstr_tok: ["Check","whether","``","other","``","is","equivalent","to","this","instance","."]
code: def __eq__(self, other) -> bool:
      """Check whether ``other`` is equivalent to this instance."""
      return (
          isinstance(other, Text)
          and self.min_length == other.min_length
          and self.max_length == other.max_length
          and self.character_set == other.character_set
      )
  
file_path: gym/gym/spaces/text.py
imports: from typing import Any, Dict, FrozenSet, Optional, Set, Tuple, Union
  import numpy
  from gym.spaces.space import Space
label_desc: Use image node_id 5 for calling the Text obj's underlying member method code with example usage: obj.__eq__(other) and returns: unknown