docs: def _generate_custom_type(self, resource_type):
          """
          Dynamically allocates a new CustomResource class definition using the
          specified Custom::SomeCustomName resource type. This special resource
          type is equivalent to the AWS::CloudFormation::CustomResource.
          """
          if not resource_type.startswith("Custom::"):
              raise TypeError("Custom types must start with Custom::")
          custom_type = type(
              str(resource_type.replace("::", "")),
              (self.inspect_resources['AWS::CloudFormation::CustomResource'],),
              {'resource_type': resource_type})
          self.inspect_members.add(custom_type)
          self.inspect_resources[resource_type] = custom_type
          return custom_type