input: Write a python function to validate the URL format used in the Master class methods.
  assert validate_url_format('http://1.2.3.4:12345/activity/all.json') == True
  assert validate_url_format('ftp://example.com/resource') == False
  assert validate_url_format('https://1.2.3.4:8080/liveactivity/new.html?execution=e2s1') == True
  assert validate_url_format('http://invalid_url') == False
output: def validate_url_format(url):
      import re
      pattern = re.compile(
          r'^(http|https)://(\d{1,3}\.){3}\d{1,3}:\d{1,5}(/[a-zA-Z0-9_.-]+)*(\.[a-zA-Z]{2,})(\?[a-zA-Z0-9=&]*)?$'
      )
      return bool(pattern.match(url))