code: def get_input(*args, secret=False, required=False, blank=False, **kwargs):
      
  
      while True:
          if secret:
              value = getpass.getpass(*args, **kwargs)
          else:
              value = input(*args, **kwargs)
  
          if blank:
              value = value if value else None
  
          if not required or value:
              break
  
      return value
docs: secret: Don't show user input when they are typing.
      required: Keep prompting if the user enters an empty value.
      blank: turn all empty strings into None.