code: def lookup_rdap(self, hr=True, show_name=False, colorize=True, **kwargs):
          
  
          # Perform the RDAP lookup
          ret = self.obj.lookup_rdap(**kwargs)
  
          if script_args.json:
  
              output = json.dumps(ret)
  
          else:
  
              # Header
              output = self.generate_output_header(query_type='RDAP')
  
              # ASN
              output += self.generate_output_asn(
                  json_data=ret, hr=hr, show_name=show_name, colorize=colorize
              )
              output += self.generate_output_newline(colorize=colorize)
  
              # Entities
              output += self.generate_output_entities(
                  json_data=ret, hr=hr, show_name=show_name, colorize=colorize
              )
              output += self.generate_output_newline(colorize=colorize)
  
              # Network
              output += self.generate_output_network(
                  json_data=ret, hr=hr, show_name=show_name, colorize=colorize
              )
              output += self.generate_output_newline(colorize=colorize)
  
              # Objects
              output += self.generate_output_objects(
                  json_data=ret, hr=hr, show_name=show_name, colorize=colorize
              )
              output += self.generate_output_newline(colorize=colorize)
  
              if 'nir' in ret:
  
                  # NIR
                  output += self.generate_output_nir(
                      json_data=ret, hr=hr, show_name=show_name,
                      colorize=colorize
                  )
                  output += self.generate_output_newline(colorize=colorize)
  
          return output
docs: The function for wrapping IPWhois.lookup_rdap() and generating
          formatted CLI output.
  
          Args:
              hr (:obj:`bool`): Enable human readable key translations. Defaults
                  to True.
              show_name (:obj:`bool`): Show human readable name (default is to
                  only show short). Defaults to False.
              colorize (:obj:`bool`): Colorize the console output with ANSI
                  colors. Defaults to True.
              kwargs: Arguments to pass to IPWhois.lookup_rdap().
  
          Returns:
              str: The generated output.