You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: pretty_location.rb
    path of file: ./repos/shrine/lib/shrine/plugins
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class Shrine
  module Plugins
    # Documentation can be 
    
        def record_namespace(record)
          class_name = record.class.name or return
          parts      = transform_class_name(class_name).split("::")

          if separator = opts[:pretty_location][:namespace]
            parts.join(separator)
          else
            parts.last
          end