code: def integer_label_smiles(smiles, max_length=85, isomeric=False):
      """
      Integer encoding for SMILES string sequence.
  
      Args:
          smiles (str): Simplified molecular-input line-entry system, which is a specification in the form of a line
          notation for describing the structure of chemical species using short ASCII strings.
          max_length (int): Maximum encoding length of input SMILES string. (default: 85)
          isomeric (bool): Whether the input SMILES string includes isomeric information (default: False).
      """
      if not isomeric:
          mol = Chem.MolFromSmiles(smiles)
          if mol is None:
              logging.warning(
                  f"rdkit cannot find this SMILES {smiles}."
              )
          else:
              smiles = Chem.MolToSmiles(
                  Chem.MolFromSmiles(smiles), isomericSmiles=True
              )
      encoding = np.zeros(max_length)
      for idx, letter in enumerate(smiles[:max_length]):
          try:
              encoding[idx] = CHARISOSMISET[letter]
          except KeyError:
              logging.warning(
                  f"character {letter} does not exists in default SMILE category encoding, skip and treat as "
                  f"padding."
              )
  
      return encoding
  
imports: import logging
  import numpy
  from rdkit import Chem
label_desc: Use image node_id 1 for calling a global function with example usage: integer_label_smiles(smiles, max_length, isomeric) and returns: encoding