def make_relative(base: str, obj: CWLObjectType) -> None:
    'Relativize the location URI of a File or Directory object.'
    uri = cast(str, obj.get('location', obj.get('path')))
    if ((':' in uri.split('/')[0]) and (not uri.startswith('file://'))):
        pass
    elif uri.startswith('file://'):
        uri = uri_file_path(uri)
        obj['location'] = os.path.relpath(uri, base)
Relativize the location URI of a File or Directory object.
def make_relative(base: str, obj: CWLObjectType) -> None:
    
    uri = cast(str, obj.get('location', obj.get('path')))
    if ((':' in uri.split('/')[0]) and (not uri.startswith('file://'))):
        pass
    elif uri.startswith('file://'):
        uri = uri_file_path(uri)
        obj['location'] = os.path.relpath(uri, base)