code: def valid_code_part(code: str) -> bool:
      if not code.isdigit():
          return False
  
      # if not all the digits are the same
      if not Multi_tap.is_all_dup(code):
          return False
  
      if int(code[0]) not in range(2, 10):
          return False
  
      if len(code) > 4:
          return False
  
      return True
  
file_path: Ciphey/ciphey/basemods/Decoders/multi_tap.py
imports: from typing import Dict, Optional
  from ciphey.iface import Config, Decoder, ParamSpec, T, U, registry
label_desc: Use image node_id 2 for calling the Multi_tap obj's underlying member method code with example usage: obj.valid_code_part(code) and returns: True, False, False, False, False