original_docstring: 
          Get an entity within the library
  
          :param name: The name of the entity
          :returns: A :class:`.TestBench` object
          :raises: KeyError
          
docstring: Get an entity within the library
docstring_tokens: Get an entity within the library
code: def entity(self, name):
          """
          Get an entity within the library
  
          :param name: The name of the entity
          :returns: A :class:`.TestBench` object
          :raises: KeyError
          """
          name = name.lower()
          library = self._project.get_library(self._library_name)
          if not library.has_entity(name):
              raise KeyError(name)
  
          return self.test_bench(name)
code_tokens: def entity ( self , name ) : name = name . lower ( ) library = self . _project . get_library ( self . _library_name ) if not library . has_entity ( name ) : raise KeyError ( name ) return self . test_bench ( name )
short_docstring: Get an entity within the library
short_docstring_tokens: Get an entity within the library
comment: """
          Get an entity within the library
  
          :param name: The name of the entity
          :returns: A :class:`.TestBench` object
          :raises: KeyError
          """