parameters: (
          self,
          package: str,
          resource: str,
          encoding: str = "utf-8",
          errors: str = "strict",
      )
return_statement: return data.decode(encoding, errors)
docstring: Load a string.
  
          Args:
              package (str): The name of module package (e.g. ``"my_package.my_subpackage"``).
              resource (str): The unique name for the resource.
              encoding (str, optional): Passed to ``decode``. Defaults to ``'utf-8'``.
              errors (str, optional): Passed to ``decode``. Defaults to ``'strict'``.
  
          Returns:
              str: The loaded text.
docstring_summary: Load a string.
docstring_tokens: Load a string .
function: def load_text(
          self,
          package: str,
          resource: str,
          encoding: str = "utf-8",
          errors: str = "strict",
      ) -> str:
          """Load a string.
  
          Args:
              package (str): The name of module package (e.g. ``"my_package.my_subpackage"``).
              resource (str): The unique name for the resource.
              encoding (str, optional): Passed to ``decode``. Defaults to ``'utf-8'``.
              errors (str, optional): Passed to ``decode``. Defaults to ``'strict'``.
  
          Returns:
              str: The loaded text.
          """
          data = self.load_binary(package, resource)
          return data.decode(encoding, errors)
function_tokens: def load_text ( self , package : str , resource : str , encoding : str = "utf-8" , errors : str = "strict" , ) -> str : data = self . load_binary ( package , resource ) return data . decode ( encoding , errors )