code: def safe_rt(resource_type, lower=False):
          
          if resource_type is not None:
              resource_type = resource_type.replace(' ', '_')
              if lower:
                  resource_type = resource_type.lower()
          return resource_type
docs: Format the Resource Type.
  
          Takes Custom Indicator types with a space character and return a *safe* string.
  
          (e.g. *User Agent* is converted to User_Agent or user_agent.)
  
          Args:
             resource_type (string): The resource type to format.
             lower (boolean): Return type in all lower case
  
          Returns:
              (string): The formatted resource type.